diff options
author | nyamatongwe <devnull@localhost> | 2008-02-06 20:58:35 +0000 |
---|---|---|
committer | nyamatongwe <devnull@localhost> | 2008-02-06 20:58:35 +0000 |
commit | 8a584a807c464428f690143afc91775f258c4b3c (patch) | |
tree | 6f5b58e1bf8e6c09ed8f8cabfedc30eabbac4f3a | |
parent | 9080a9bdc7bdee98c720552deed0d42cbc7a1ce9 (diff) | |
download | scintilla-mirror-8a584a807c464428f690143afc91775f258c4b3c.tar.gz |
Can compile for GTK+ on Windows using mingw.
-rw-r--r-- | include/Platform.h | 4 |
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); } }; |