summaryrefslogtreecommitdiffstats
path: root/Graphics/GraphicsEngineOpenGL
diff options
context:
space:
mode:
authorEgor Yusov <egor.yusov@gmail.com>2018-12-14 06:24:33 +0000
committerEgor Yusov <egor.yusov@gmail.com>2018-12-14 06:24:33 +0000
commit66082789e14ee84cb661472fabf7568b268b3920 (patch)
tree95a190bc55e14a4589cccc89a04462696a477bf2 /Graphics/GraphicsEngineOpenGL
parentAnother couple of updates to GL and VK backend CMake files to fix MinGW build (diff)
downloadDiligentCore-66082789e14ee84cb661472fabf7568b268b3920.tar.gz
DiligentCore-66082789e14ee84cb661472fabf7568b268b3920.zip
Few final changes to support MinGW build
Diffstat (limited to 'Graphics/GraphicsEngineOpenGL')
-rw-r--r--Graphics/GraphicsEngineOpenGL/interface/RenderDeviceFactoryOpenGL.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/Graphics/GraphicsEngineOpenGL/interface/RenderDeviceFactoryOpenGL.h b/Graphics/GraphicsEngineOpenGL/interface/RenderDeviceFactoryOpenGL.h
index b931630e..c1e34419 100644
--- a/Graphics/GraphicsEngineOpenGL/interface/RenderDeviceFactoryOpenGL.h
+++ b/Graphics/GraphicsEngineOpenGL/interface/RenderDeviceFactoryOpenGL.h
@@ -36,15 +36,15 @@
#include "EngineGLAttribs.h"
-#if PLATFORM_WIN32
-
-# define API_QUALIFIER
-
-#elif PLATFORM_ANDROID || PLATFORM_LINUX || PLATFORM_MACOS || PLATFORM_IOS
+#if PLATFORM_ANDROID || PLATFORM_LINUX || PLATFORM_MACOS || PLATFORM_IOS || (PLATFORM_WIN32 && !defined(_MSC_VER))
// https://gcc.gnu.org/wiki/Visibility
# define API_QUALIFIER __attribute__((visibility("default")))
+#elif PLATFORM_WIN32
+
+# define API_QUALIFIER
+
#else
# error Unsupported platform
#endif