[dxgi] Don't declspec dllexport on MinGW builds

Fixes ordinal exporting on MinGW on 32-bit builds.
Mirrors this D3D9 commit here: 904d3e6c90
This commit is contained in:
Joshua Ashton 2022-08-21 17:38:38 +00:00 committed by Philip Rebohle
parent 4a113c39d3
commit 538b132490
1 changed files with 2 additions and 4 deletions

View File

@ -2,11 +2,9 @@
//for some reason we need to specify __declspec(dllexport) for MinGW
#if defined(__WINE__)
#define DLLEXPORT __attribute__((visibility("default")))
#elif defined(_MSC_VER)
#define DLLEXPORT
#define DLLEXPORT __attribute__((visibility("default")))
#else
#define DLLEXPORT __declspec(dllexport)
#define DLLEXPORT
#endif
#include "../util/com/com_guid.h"