Added APIENTRY hack to native header.

master
Camilla Berglund ago%!(EXTRA string=11 years)
parent d5cf713c20
commit 9ccb966a3a
  1. 4
      include/GLFW/glfw3native.h

@ -71,6 +71,10 @@ extern "C" {
*************************************************************************/
#if defined(GLFW_EXPOSE_NATIVE_WIN32)
// This is a workaround for the fact that glfw3.h needs to export APIENTRY (for
// example to allow applications to correctly declare a GL_ARB_debug_output
// callback) but windows.h assumes no one will define APIENTRY before it does
#undef APIENTRY
#include <windows.h>
#elif defined(GLFW_EXPOSE_NATIVE_COCOA)
#include <ApplicationServices/ApplicationServices.h>

Loading…
Cancel
Save