/////////////////////////////////////////////////////////////////////////////
#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