diff options
author | nyamatongwe <devnull@localhost> | 2001-06-28 08:03:34 +0000 |
---|---|---|
committer | nyamatongwe <devnull@localhost> | 2001-06-28 08:03:34 +0000 |
commit | db8a4fa74aa4def6cde2450f02955bc493f68bcf (patch) | |
tree | 97d576d73addb1e3c33663027353c6cca82e90e4 /include/Platform.h | |
parent | 969f6e86c87690fcf59539e49df57da7a50722d2 (diff) | |
download | scintilla-mirror-db8a4fa74aa4def6cde2450f02955bc493f68bcf.tar.gz |
Patches from Stephan to simplify preprocessor definitions for GTK+
on Windows.
Diffstat (limited to 'include/Platform.h')
-rw-r--r-- | include/Platform.h | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/include/Platform.h b/include/Platform.h index 500c71de3..74de63174 100644 --- a/include/Platform.h +++ b/include/Platform.h @@ -9,11 +9,13 @@ #ifndef PLATFORM_H #define PLATFORM_H -// PLAT_GTK = GTK+ on Linux, PLAT_WIN = Win32 API on Win32 OS +// PLAT_GTK = GTK+ on Linux or Win32 +// PLAT_GTK_WIN32 is defined additionally when running PLAT_GTK under Win32 +// PLAT_WIN = Win32 API on Win32 OS // PLAT_WX is wxWindows on any supported platform -// Could also have PLAT_GTKWIN = GTK+ on Win32 OS in future #define PLAT_GTK 0 +#define PLAT_GTK_WIN32 0 #define PLAT_WIN 0 #define PLAT_WX 0 @@ -25,6 +27,11 @@ #undef PLAT_GTK #define PLAT_GTK 1 +#ifdef _MSC_VER +#undef PLAT_GTK_WIN32 +#define PLAT_GTK_WIN32 1 +#endif + #else #undef PLAT_WIN #define PLAT_WIN 1 |