Properly defined uiprivExtern in static cases.
This commit is contained in:
parent
59b449b920
commit
db9be102e6
10
ui.h
10
ui.h
|
@ -11,13 +11,19 @@ extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef uiprivBuildingLibui
|
#ifdef uiprivBuildingLibui
|
||||||
#ifdef _WIN32
|
#if defined(_WIN32) && !defined(uiStatic)
|
||||||
#define uiprivExtern __declspec(dllexport) extern
|
#define uiprivExtern __declspec(dllexport) extern
|
||||||
|
#elif deffined(_WIN32)
|
||||||
|
#define uiprivExtern extern
|
||||||
#else
|
#else
|
||||||
#define uiprivExtern __attribute__((visibility("default"))) extern
|
#define uiprivExtern __attribute__((visibility("default"))) extern
|
||||||
#endif
|
#endif
|
||||||
#else
|
#else
|
||||||
// TODO add __declspec(dllimport) on windows, but only if not static#define uiprivExtern extern
|
#if defined(_WIN32) && !defined(uiStatic)
|
||||||
|
#define uiprivExtern __declspec(dllimport) extern
|
||||||
|
#else
|
||||||
|
#define uiprivExtern extern
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// C++ is really really really really really really dumb about enums, so screw that and just make them anonymous
|
// C++ is really really really really really really dumb about enums, so screw that and just make them anonymous
|
||||||
|
|
Loading…
Reference in New Issue