]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/glcanvas.cpp
two fixes from Justin Bradford
[wxWidgets.git] / src / msw / glcanvas.cpp
index 5180f0d6027a6ba621baa8cc40604dab45777318..f854b48a7ebe581adbb9e341407f09953a9e536f 100644 (file)
@@ -9,7 +9,7 @@
 // Licence:     wxWindows licence
 /////////////////////////////////////////////////////////////////////////////
 
-#ifdef __GNUG__
+#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
 #pragma implementation "glcanvas.h"
 #endif
 
     #include "wx/settings.h"
     #include "wx/intl.h"
     #include "wx/log.h"
+    #include "wx/app.h"
 #endif
 
 #include "wx/msw/private.h"
 
+// DLL options compatibility check:
+#include "wx/build.h"
+WX_CHECK_BUILD_OPTIONS("wxGL")
+
 #include "wx/glcanvas.h"
 
 /*
@@ -54,6 +59,7 @@
 #  pragma comment( lib, "glu32" )
 #endif
 
+
 static const wxChar *wxGLCanvasClassName = wxT("wxGLCanvasClass");
 static const wxChar *wxGLCanvasClassNameNoRedraw = wxT("wxGLCanvasClassNR");