aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authornyamatongwe <devnull@localhost>2008-02-06 20:58:35 +0000
committernyamatongwe <devnull@localhost>2008-02-06 20:58:35 +0000
commit8a584a807c464428f690143afc91775f258c4b3c (patch)
tree6f5b58e1bf8e6c09ed8f8cabfedc30eabbac4f3a
parent9080a9bdc7bdee98c720552deed0d42cbc7a1ce9 (diff)
downloadscintilla-mirror-8a584a807c464428f690143afc91775f258c4b3c.tar.gz
Can compile for GTK+ on Windows using mingw.
-rw-r--r--include/Platform.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/Platform.h b/include/Platform.h
index 79be33f6b..98fd7e042 100644
--- a/include/Platform.h
+++ b/include/Platform.h
@@ -33,7 +33,7 @@
#undef PLAT_GTK
#define PLAT_GTK 1
-#ifdef _MSC_VER
+#if defined(__WIN32__) || defined(_MSC_VER)
#undef PLAT_GTK_WIN32
#define PLAT_GTK_WIN32 1
#endif
@@ -122,7 +122,7 @@ public:
}
int Width() { return right - left; }
int Height() { return bottom - top; }
- bool Empty() {
+ bool Empty() {
return (Height() <= 0) || (Width() <= 0);
}
};