From 714883d47212ddcfe6ce708346956d0d750510e4 Mon Sep 17 00:00:00 2001 From: Shiqing Fan Date: Tue, 3 Aug 2010 09:06:50 +0000 Subject: [PATCH] A better way to make this work with VS 2010. This commit was SVN r23544. --- opal/win32/win_compat.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/opal/win32/win_compat.h b/opal/win32/win_compat.h index 9c615970a6..d8064eba2a 100644 --- a/opal/win32/win_compat.h +++ b/opal/win32/win_compat.h @@ -220,7 +220,15 @@ typedef unsigned int uint; #define sigset_t int #define in_addr_t uint32_t + +/* Need to define _Bool here for different version of VS. + The definition in opal_config_bottom.h won't help, + as long as we have a mixed C and C++ projects in one solution. */ +#if defined(_MSC_VER) && _MSC_VER < 1600 +#define _Bool BOOL +#else #define _Bool bool +#endif /* * No syslog.h on Windows, but these have to be defined somehow.