fix: Only use __declspec on with MSVC
This commit is contained in:
parent
327a02b87d
commit
e5c003d726
30
lib/third_party/imgui/imgui/include/imconfig.h
vendored
30
lib/third_party/imgui/imgui/include/imconfig.h
vendored
@ -32,20 +32,22 @@ namespace hex::log::impl {
|
||||
//#define IMGUI_API __declspec( dllexport )
|
||||
//#define IMGUI_API __declspec( dllimport )
|
||||
|
||||
#if EXPORT_SYMBOLS == 1
|
||||
#define IMGUI_API __declspec(dllexport)
|
||||
#define IMGUI_IMPL_API __declspec(dllexport)
|
||||
#define IMPLOT_API __declspec(dllexport)
|
||||
#define IMPLOT_IMPL_API __declspec(dllexport)
|
||||
#define IMPLOT3D_API __declspec(dllexport)
|
||||
#define IMPLOT3D_IMPL_API __declspec(dllexport)
|
||||
#else
|
||||
#define IMGUI_API __declspec(dllimport)
|
||||
#define IMGUI_IMPL_API __declspec(dllimport)
|
||||
#define IMPLOT_API __declspec(dllimport)
|
||||
#define IMPLOT_IMPL_API __declspec(dllimport)
|
||||
#define IMPLOT3D_API __declspec(dllimport)
|
||||
#define IMPLOT3D_IMPL_API __declspec(dllimport)
|
||||
#if defined(_MSC_VER)
|
||||
#if EXPORT_SYMBOLS == 1
|
||||
#define IMGUI_API __declspec(dllexport)
|
||||
#define IMGUI_IMPL_API __declspec(dllexport)
|
||||
#define IMPLOT_API __declspec(dllexport)
|
||||
#define IMPLOT_IMPL_API __declspec(dllexport)
|
||||
#define IMPLOT3D_API __declspec(dllexport)
|
||||
#define IMPLOT3D_IMPL_API __declspec(dllexport)
|
||||
#else
|
||||
#define IMGUI_API __declspec(dllimport)
|
||||
#define IMGUI_IMPL_API __declspec(dllimport)
|
||||
#define IMPLOT_API __declspec(dllimport)
|
||||
#define IMPLOT_IMPL_API __declspec(dllimport)
|
||||
#define IMPLOT3D_API __declspec(dllimport)
|
||||
#define IMPLOT3D_IMPL_API __declspec(dllimport)
|
||||
#endif
|
||||
#endif
|
||||
|
||||
//---- Don't define obsolete functions/enums/behaviors. Consider enabling from time to time after updating to avoid using soon-to-be obsolete function/names.
|
||||
|
Loading…
x
Reference in New Issue
Block a user