From 8a584a807c464428f690143afc91775f258c4b3c Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Wed, 6 Feb 2008 20:58:35 +0000 Subject: Can compile for GTK+ on Windows using mingw. --- include/Platform.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'include') 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); } }; -- cgit v1.2.3