mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-28 02:11:43 +00:00
[wpiutil] SymbolExports: Add WPILIB_IMPORTS for dllimport
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user