aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/WinDefs.h
diff options
context:
space:
mode:
authornyamatongwe <devnull@localhost>2001-06-28 08:03:34 +0000
committernyamatongwe <devnull@localhost>2001-06-28 08:03:34 +0000
commitdb8a4fa74aa4def6cde2450f02955bc493f68bcf (patch)
tree97d576d73addb1e3c33663027353c6cca82e90e4 /include/WinDefs.h
parent969f6e86c87690fcf59539e49df57da7a50722d2 (diff)
downloadscintilla-mirror-db8a4fa74aa4def6cde2450f02955bc493f68bcf.tar.gz
Patches from Stephan to simplify preprocessor definitions for GTK+
on Windows.
Diffstat (limited to 'include/WinDefs.h')
-rw-r--r--include/WinDefs.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/include/WinDefs.h b/include/WinDefs.h
index bab41662e..b3421c0bc 100644
--- a/include/WinDefs.h
+++ b/include/WinDefs.h
@@ -8,6 +8,16 @@
#ifndef WINDEFS_H
#define WINDEFS_H
+/* Running GTK version on win32 */
+#if PLAT_GTK_WIN32
+#include "Windows.h"
+#include "Richedit.h"
+
+/* Name conflicts */
+#undef DrawText
+#undef FindText
+#else
+
#define WORD short
#define WPARAM unsigned long
#define LPARAM long
@@ -182,4 +192,6 @@ struct FORMATRANGE {
//#define LOWORD(x) (x & 0xffff)
//#define HIWORD(x) (x >> 16)
+#endif /* !_MSC_VER */
+
#endif