]> git.tdb.fi Git - libs/gl.git/blobdiff - source/gl.h
Get function pointers on OS X through weak symbols
[libs/gl.git] / source / gl.h
index 05844ba5f4666e5b048209ab9340bff69a601d68..255242bf12956fb0559730cd8d8885fdd5813c71 100644 (file)
@@ -5,8 +5,10 @@
 #include <windows.h>
 #endif
 #ifdef __APPLE__
+#define extern extern __attribute__((weak_import))
 #include <OpenGL/gl.h>
 #include <OpenGL/glext.h>
+#undef extern
 #else
 #include <GL/gl.h>
 #include <GL/glext.h>