]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/mac/glcanvas.h
Fix for missing -g from wx-config
[wxWidgets.git] / include / wx / mac / glcanvas.h
index 73e067d3019c4b34401ba47b8970e86fca49ea2f..877d50197458d6c8aecad1d28dc1489a2a700238 100644 (file)
@@ -10,7 +10,7 @@
 /////////////////////////////////////////////////////////////////////////////
 
 #ifdef __GNUG__
-#pragma interface "glcanvas.h"
+#  pragma interface "glcanvas.h"
 #endif
 
 #ifndef _WX_GLCANVAS_H_
 
 #include "wx/palette.h"
 #include "wx/scrolwin.h"
-
-#include <gl.h>
-#include <agl.h>
+#include "wx/app.h"
+
+#ifdef __DARWIN__
+#  include <OpenGL/gl.h>
+#  include <AGL/agl.h>
+#else
+#  include <gl.h>
+#  include <agl.h>
+#endif
 
 //---------------------------------------------------------------------------
 // Constants for attriblist