Browse Source

Proper way to (un)define the value

tags/v2.3.0-RC1
falkTX 4 years ago
parent
commit
6669b26863
1 changed files with 7 additions and 1 deletions
  1. +7
    -1
      source/modules/dgl/Base.hpp

+ 7
- 1
source/modules/dgl/Base.hpp View File

@@ -36,7 +36,8 @@
// Fix OpenGL includes for Windows, based on glfw code

#ifndef APIENTRY
# define APIENTRY WINAPI
# define APIENTRY __stdcall
# define DGL_APIENTRY_DEFINED
#endif // APIENTRY

/* We need WINGDIAPI defined */
@@ -102,6 +103,11 @@
// -----------------------------------------------------------------------
// Fix OpenGL includes for Windows, based on glfw code

#ifdef DGL_APIENTRY_DEFINED
# undef APIENTRY
# undef DGL_APIENTRY_DEFINED
#endif

#ifdef DGL_WINGDIAPI_DEFINED
# undef WINGDIAPI
# undef DGL_WINGDIAPI_DEFINED


Loading…
Cancel
Save