]> git.saurik.com Git - wxWidgets.git/commitdiff
compilation fix for wxUSE_RICHEDIT == 0 (closes bug 662252)
authorVadim Zeitlin <vadim@wxwidgets.org>
Sun, 12 Jan 2003 23:24:46 +0000 (23:24 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sun, 12 Jan 2003 23:24:46 +0000 (23:24 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@18704 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/msw/textctrl.cpp

index ea8f3eff7630a6a0118336b3fef69d9c4457482d..77ad90c6d3c3f62e038c0804cee295cd03ab4dfe 100644 (file)
 #include <stdlib.h>
 #include <sys/types.h>
 
-#if wxUSE_RICHEDIT && (!defined(__GNUWIN32_OLD__) || defined(__CYGWIN10__))
+#if wxUSE_RICHEDIT
+
+// old mingw32 has richedit stuff directly in windows.h and doesn't have
+// richedit.h at all
+#if !defined(__GNUWIN32_OLD__) || defined(__CYGWIN10__)
     #include <richedit.h>
 #endif
 
 
 // Watcom C++ doesn't define this
 #ifndef SCF_ALL
-#define SCF_ALL 0x0004
+    #define SCF_ALL 0x0004
 #endif
 
+#endif // wxUSE_RICHEDIT
+
 // ----------------------------------------------------------------------------
 // private functions
 // ----------------------------------------------------------------------------