From 634d3cc8d8d9d8e663d465d6405afc661b6dccf3 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Thu, 20 Jan 2000 22:36:48 +0000 Subject: [PATCH] added test for _WIN32 git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@5554 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/defs.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/include/wx/defs.h b/include/wx/defs.h index c03471ff7a..fa9ca95dce 100644 --- a/include/wx/defs.h +++ b/include/wx/defs.h @@ -164,9 +164,11 @@ #endif #ifdef __WXMSW__ -// wxWindows checks for WIN32, not __WIN32__ -#if ((defined(WIN32) || defined(__NT__)) && !defined(__WIN32__) && !defined(__WXSTUBS__)) -#define __WIN32__ + #if defined(_WIN32) || defined(WIN32) || defined(__NT__) + #ifndef __WIN32__ + #define __WIN32__ + #endif + #endif #endif #ifdef __WXWINE__