X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/387ebd3eb755ea6ca076708cfb25fe56249bf787..e27c99c7504d9168ee0ddd6043f942fd230027bc:/include/wx/mgl/dc.h

diff --git a/include/wx/mgl/dc.h b/include/wx/mgl/dc.h
index 9e0cccd454..7ac52ee1f5 100644
--- a/include/wx/mgl/dc.h
+++ b/include/wx/mgl/dc.h
@@ -11,12 +11,11 @@
 #ifndef _WX_DC_H_
 #define _WX_DC_H_
 
-#ifdef __GNUG__
+#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
     #pragma interface "dc.h"
 #endif
 
 #include "wx/defs.h"
-#include "wx/dc.h"
 #include "wx/region.h"
 
 //-----------------------------------------------------------------------------