From 70e08d1325b2cdd0e9c16a193cc6ed10d2d21617 Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Fri, 17 Feb 2017 12:34:51 +0100 Subject: Win32 build fixes. --- plugingui/testmain.cc | 4 +++- plugingui/tests/resizetest.cc | 4 +++- plugingui/tests/tabwidgettest.cc | 4 +++- 3 files changed, 9 insertions(+), 3 deletions(-) (limited to 'plugingui') diff --git a/plugingui/testmain.cc b/plugingui/testmain.cc index 07bbe6c..8edfd0a 100644 --- a/plugingui/testmain.cc +++ b/plugingui/testmain.cc @@ -24,7 +24,9 @@ * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ -#ifdef WIN32 +#include + +#if DG_PLATFORM == DG_PLATFORM_WINDOWS #define WIN32_LEAN_AND_MEAN #include #endif diff --git a/plugingui/tests/resizetest.cc b/plugingui/tests/resizetest.cc index 213cece..2267030 100644 --- a/plugingui/tests/resizetest.cc +++ b/plugingui/tests/resizetest.cc @@ -26,7 +26,9 @@ */ #include -#ifdef WIN32 +#include + +#if DG_PLATFORM == DG_PLATFORM_WINDOWS #define WIN32_LEAN_AND_MEAN #include #endif diff --git a/plugingui/tests/tabwidgettest.cc b/plugingui/tests/tabwidgettest.cc index 2ddabd3..e187fee 100644 --- a/plugingui/tests/tabwidgettest.cc +++ b/plugingui/tests/tabwidgettest.cc @@ -26,7 +26,9 @@ */ #include -#ifdef WIN32 +#include + +#if DG_PLATFORM == DG_PLATFORM_WINDOWS #define WIN32_LEAN_AND_MEAN #include #endif -- cgit v1.2.3