1
0
Fork 0
mirror of https://github.com/AquariaOSE/Aquaria.git synced 2025-08-08 07:09:52 +00:00

fix MSVC OpenGL linkage warnings & mingw linker problems. use SDL.lib also for MinGW.

This commit is contained in:
fgenesis 2011-08-11 04:56:27 +02:00
parent 6df593975f
commit 827e8f2a4b
7 changed files with 14 additions and 52 deletions

View file

@ -35,9 +35,18 @@ extern "C" {
#define APIENTRY
#endif
#ifndef WIN32
// BBGE HACK:
// Because Win32 uses __declspec(dllimport) for OpenGL function imports,
// although Core.cpp defines its own functions using the same names, which are just accessing
// OpenGL function pointers acquired elsewhere, this leads to inconsistent linkage between
// declaration in gl.h and the actual function definition in Core.cpp.
// So, we use this little hack to disable external linkage globally.
#undef WINGDIAPI
#define WINGDIAPI extern
/*#ifndef WIN32
#define WINGDIAPI
#endif
#endif*/
#ifndef GLAPI
# ifdef _WIN32