X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/de564874d60233c977c93496da1aa406245c37c2..4a93ea29b583718ec19613d6af98ff1ce9cc0ea3:/src/common/regex.cpp

diff --git a/src/common/regex.cpp b/src/common/regex.cpp
index e39cde96bf..9c7e55c040 100644
--- a/src/common/regex.cpp
+++ b/src/common/regex.cpp
@@ -18,7 +18,7 @@
 // headers
 // ----------------------------------------------------------------------------
 
-#ifdef __GNUG__
+#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
     #pragma implementation "regex.h"
 #endif