Skip to content

Commit

Permalink
#15 fix GetProc macros
Browse files Browse the repository at this point in the history
  • Loading branch information
XProger committed Oct 6, 2016
1 parent 3a6f3ad commit 3f3a590
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/core.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,7 @@
#endif
}

#if defined(_MSC_VER) || defined(__clang__) // Visual Studio
#define GetProcOGL(x) *(void**)&x=(void*)GetProc(#x);
#else // GCC
#define GetProcOGL(x) x=(typeof(x))GetProc(#x);
#endif
#define GetProcOGL(x) x=(decltype(x))GetProc(#x);

// Texture
#ifdef WIN32
Expand Down

0 comments on commit 3f3a590

Please sign in to comment.