core: don't use declspec(dllexport) when compiling/linking to static library
this is required due to function names being decorated differently by MSVC when building a .dll file
This commit is contained in:
@@ -15,11 +15,15 @@
|
|||||||
(sizeof((arg_type[]) {__VA_ARGS__}) / sizeof(arg_type))
|
(sizeof((arg_type[]) {__VA_ARGS__}) / sizeof(arg_type))
|
||||||
|
|
||||||
#ifdef _MSC_VER
|
#ifdef _MSC_VER
|
||||||
|
#ifdef BLUELIB_STATIC
|
||||||
|
#define BLUE_API extern
|
||||||
|
#else
|
||||||
#ifdef BLUELIB_EXPORT
|
#ifdef BLUELIB_EXPORT
|
||||||
#define BLUE_API extern __declspec(dllexport)
|
#define BLUE_API extern __declspec(dllexport)
|
||||||
#else
|
#else
|
||||||
#define BLUE_API extern __declspec(dllimport)
|
#define BLUE_API extern __declspec(dllimport)
|
||||||
#endif
|
#endif
|
||||||
|
#endif
|
||||||
#else
|
#else
|
||||||
#define BLUE_API extern
|
#define BLUE_API extern
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user