diff options
Diffstat (limited to 'include/WinDefs.h')
-rw-r--r-- | include/WinDefs.h | 12 |
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 |