Avoid multiple gl.h inclusions

Expose native Cocoa Window again...
This commit is contained in:
Ray 2018-10-08 18:08:39 +02:00
commit 2652e7d1c1

View file

@ -101,7 +101,10 @@ extern "C" {
#if defined(__OBJC__)
#import <Cocoa/Cocoa.h>
#else
typedef void* id;
// RAY: Added protection in case OBJC types defined
#if !defined(OBJC_TYPES_DEFINED)
typedef void* id;
#endif
#endif
#elif defined(GLFW_EXPOSE_NATIVE_X11)
#include <X11/Xlib.h>