-/* $Id$
-
-This file is part of libmspgl
-Copyright © 2007 Mikko Rasa, Mikkosoft Productions
-Distributed under the LGPL
-*/
-
#ifndef MSP_GL_GL_H_
#define MSP_GL_GL_H_
#ifdef WIN32
#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>
+#endif
#endif