Skip to content

Commit 243c7dd

Browse files
committed
Export API_QUALIFIER symbols on Windows
This is required since by default symbols are not exported on Windows.
1 parent 663583e commit 243c7dd

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

Graphics/Archiver/interface/ArchiverFactoryLoader.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
// https://gcc.gnu.org/wiki/Visibility
3333
# define API_QUALIFIER __attribute__((visibility("default")))
3434
#elif PLATFORM_WIN32 || PLATFORM_UNIVERSAL_WINDOWS
35-
# define API_QUALIFIER
35+
# define API_QUALIFIER __declspec(dllexport)
3636
#else
3737
# error Unsupported platform
3838
#endif

Graphics/GraphicsEngineOpenGL/interface/EngineFactoryOpenGL.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
// https://gcc.gnu.org/wiki/Visibility
4343
# define API_QUALIFIER __attribute__((visibility("default")))
4444
#elif PLATFORM_WIN32
45-
# define API_QUALIFIER
45+
# define API_QUALIFIER __declspec(dllexport)
4646
#else
4747
# error Unsupported platform
4848
#endif

Graphics/GraphicsEngineVulkan/interface/EngineFactoryVk.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
// https://gcc.gnu.org/wiki/Visibility
4040
# define API_QUALIFIER __attribute__((visibility("default")))
4141
#elif PLATFORM_WIN32
42-
# define API_QUALIFIER
42+
# define API_QUALIFIER __declspec(dllexport)
4343
#else
4444
# error Unsupported platform
4545
#endif

Graphics/GraphicsEngineWebGPU/interface/EngineFactoryWebGPU.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
// https://gcc.gnu.org/wiki/Visibility
3939
# define API_QUALIFIER __attribute__((visibility("default")))
4040
#elif PLATFORM_WIN32
41-
# define API_QUALIFIER
41+
# define API_QUALIFIER __declspec(dllexport)
4242
#else
4343
# error Unsupported platform
4444
#endif

0 commit comments

Comments
 (0)