From bea59f64b2bc1e29840adfbb07583dc0b763db83 Mon Sep 17 00:00:00 2001 From: Camilla Berglund Date: Tue, 23 Jul 2013 00:20:23 +0200 Subject: [PATCH] Enabled inclusion of stddef.h on all platforms. The OS X gl.h defines section macros that prevents glext.h from including stddef.h, leaving it undeclared when it's later used. --- include/GLFW/glfw3.h | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/include/GLFW/glfw3.h b/include/GLFW/glfw3.h index 2738fa18..cdf52492 100644 --- a/include/GLFW/glfw3.h +++ b/include/GLFW/glfw3.h @@ -132,10 +132,9 @@ extern "C" { #define GLFW_CALLBACK_DEFINED #endif /* CALLBACK */ -/* Most variants on Windows need wchar_t */ -#if defined(_WIN32) - #include -#endif +/* Most GL/glu.h variants on Windows need wchar_t + * OpenGL/gl.h blocks the definition of ptrdiff_t by glext.h on OS X */ +#include /* ---------------- GLFW related system specific defines ----------------- */