X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d134f1702e983b6588c5783b10a401e8bdb69314..e3556282410eb387e426d68076403fa69f2b669f:/src/stc/scintilla/include/WinDefs.h diff --git a/src/stc/scintilla/include/WinDefs.h b/src/stc/scintilla/include/WinDefs.h index c56f02d810..b3421c0bcc 100644 --- a/src/stc/scintilla/include/WinDefs.h +++ b/src/stc/scintilla/include/WinDefs.h @@ -1,11 +1,23 @@ // Scintilla source code edit control -// WinDefs.h - the subset of definitions from Windows needed by Scintilla for GTK+ -// Copyright 1998-2000 by Neil Hodgson +/** @file WinDefs.h + ** The subset of definitions from Windows needed by Scintilla for GTK+. + **/ +// Copyright 1998-2001 by Neil Hodgson // The License.txt file describes the conditions under which this software may be distributed. #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 @@ -180,4 +192,6 @@ struct FORMATRANGE { //#define LOWORD(x) (x & 0xffff) //#define HIWORD(x) (x >> 16) +#endif /* !_MSC_VER */ + #endif