X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/0ff5799aca392547b9c411dedfb181c17e7b0fa2..20fa338c4120e89356d31e46e9f8c97e0bca67c7:/src/common/msgout.cpp?ds=sidebyside

diff --git a/src/common/msgout.cpp b/src/common/msgout.cpp
index f66ffdc2b2..961e0c4614 100755
--- a/src/common/msgout.cpp
+++ b/src/common/msgout.cpp
@@ -17,7 +17,14 @@
 // headers
 // ---------------------------------------------------------------------------
 
-#ifdef __GNUG__
+#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) && !defined(__EMX__)
+// Some older compilers (such as EMX) cannot handle
+// #pragma interface/implementation correctly, iff 
+// #pragma implementation is used in _two_ translation
+// units (as created by e.g. event.cpp compiled for
+// libwx_base and event.cpp compiled for libwx_gui_core).
+// So we must not use those pragmas for those compilers in
+// such files.
     #pragma implementation "msgout.h"
 #endif