diff options
| author | Egor Yusov <egor.yusov@gmail.com> | 2018-12-14 06:24:33 +0000 |
|---|---|---|
| committer | Egor Yusov <egor.yusov@gmail.com> | 2018-12-14 06:24:33 +0000 |
| commit | 66082789e14ee84cb661472fabf7568b268b3920 (patch) | |
| tree | 95a190bc55e14a4589cccc89a04462696a477bf2 /Graphics/GraphicsEngineOpenGL | |
| parent | Another couple of updates to GL and VK backend CMake files to fix MinGW build (diff) | |
| download | DiligentCore-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.h | 10 |
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 |
