]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/event.cpp
use SetClientSize(), not SetSize() in Fit()
[wxWidgets.git] / src / common / event.cpp
index 414390d351098c57a24f9788aa4b20d9930d2aeb..e734fb9e83c7f1b9d86c0295adabdf830fb2969c 100644 (file)
 // headers
 // ----------------------------------------------------------------------------
 
-#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
+#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 "event.h"
 #endif