X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/371a5b4e62eb415107e045588f614fa49e866e78..b6e2eddeaf7e559589ce41ac41e88f9bd71c5a08:/include/wx/univ/control.h

diff --git a/include/wx/univ/control.h b/include/wx/univ/control.h
index c2511deda4..710e6307fd 100644
--- a/include/wx/univ/control.h
+++ b/include/wx/univ/control.h
@@ -12,7 +12,7 @@
 #ifndef _WX_UNIV_CONTROL_H_
 #define _WX_UNIV_CONTROL_H_
 
-#ifdef __GNUG__
+#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
     #pragma interface "control.h"
 #endif