1
0
mirror of synced 2025-02-08 15:08:11 +01:00

fix: Only use __declspec on with MSVC

This commit is contained in:
WerWolv 2025-02-01 19:57:39 +01:00
parent 327a02b87d
commit e5c003d726

View File

@ -32,6 +32,7 @@ namespace hex::log::impl {
//#define IMGUI_API __declspec( dllexport )
//#define IMGUI_API __declspec( dllimport )
#if defined(_MSC_VER)
#if EXPORT_SYMBOLS == 1
#define IMGUI_API __declspec(dllexport)
#define IMGUI_IMPL_API __declspec(dllexport)
@ -47,6 +48,7 @@ namespace hex::log::impl {
#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.
//#define IMGUI_DISABLE_OBSOLETE_FUNCTIONS