[wpiutil] SymbolExports: Add WPILIB_IMPORTS for dllimport

This commit is contained in:
Peter Johnson
2022-04-29 16:55:38 -07:00
parent 84056c9347
commit 7200c4951d

View File

@@ -14,14 +14,28 @@
#define WPILIB_DLLEXPORT __declspec(dllexport)
#endif
#elif defined(WPILIB_IMPORTS)
#ifdef __GNUC__
#define WPILIB_DLLEXPORT __attribute__((dllimport))
#else
#define WPILIB_DLLEXPORT __declspec(dllimport)
#endif
#else
#define WPILIB_DLLEXPORT
#endif
#else
#else // _WIN32
#ifdef WPILIB_EXPORTS
#define WPILIB_DLLEXPORT __attribute__((visibility("default")))
#else
#define WPILIB_DLLEXPORT
#endif
#endif // _WIN32
// Synopsis
//
// This header provides macros for using FOO_EXPORT macros with explicit