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:
parent
6df593975f
commit
827e8f2a4b
7 changed files with 14 additions and 52 deletions
13
BBGE/GL/gl.h
13
BBGE/GL/gl.h
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue