Fix linux compilation.

Fix windows compilation, again.
This commit is contained in:
Giegue
2023-02-14 20:44:13 -03:00
parent c32827b4cb
commit 2f80da1e15
3 changed files with 18 additions and 6 deletions

View File

@@ -80,7 +80,9 @@
// DLL.
#undef DLLEXPORT
#ifdef _WIN32
#define DLLEXPORT __declspec(dllexport) __attribute__ ((externally_visible))
// __attribute__ ((externally_visible)) is not recognized by VC++6
// or, rather, is GCC-only. do we need it for windows builds? -Giegue
#define DLLEXPORT __declspec(dllexport)
// WINAPI should be provided in the windows compiler headers.
// It's usually defined to something like "__stdcall".
#elif defined(linux)