Include more specific headers on macOS

This reduces the compile time fairly significantly.
master
Graham 5 years ago
parent fd2fdd342e
commit ae0baeb271
  1. 7
      gl-natives/src/main/c/jaggl.c

@ -9,10 +9,11 @@
#include <GL/glext.h> #include <GL/glext.h>
#include <GL/wglext.h> #include <GL/wglext.h>
#elif defined(__APPLE__) && defined(__MACH__) #elif defined(__APPLE__) && defined(__MACH__)
#include <Cocoa/Cocoa.h> #include <AppKit/NSOpenGL.h>
#include <OpenGL/OpenGL.h> #include <AppKit/NSView.h>
#include <AppKit/NSWindow.h>
#include <OpenGL/gl.h> #include <OpenGL/gl.h>
#include <QuartzCore/QuartzCore.h> #include <QuartzCore/CAOpenGLLayer.h>
#include <dlfcn.h> #include <dlfcn.h>
#else #else
#error Unsupported platform #error Unsupported platform

Loading…
Cancel
Save