aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/Platform.h
diff options
context:
space:
mode:
authornyamatongwe <unknown>2001-06-28 08:03:34 +0000
committernyamatongwe <unknown>2001-06-28 08:03:34 +0000
commit3426fa7b7599bb634844e6d4f0d08a1b4a35b3cc (patch)
tree97d576d73addb1e3c33663027353c6cca82e90e4 /include/Platform.h
parent1fa680df8f1c8299da28e2280ec1b33c8850d2f7 (diff)
downloadscintilla-mirror-3426fa7b7599bb634844e6d4f0d08a1b4a35b3cc.tar.gz
Patches from Stephan to simplify preprocessor definitions for GTK+
on Windows.
Diffstat (limited to 'include/Platform.h')
-rw-r--r--include/Platform.h11
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