#include <windows.h>
#include <process.h>
#include <tlhelp32.h>
+
+#if defined(__GNUC__) || defined(__clang__)
+#else
+#pragma warning( push )
+#pragma warning(disable: 4800) // 'BOOL' forced to 'true' or 'false'
+#endif
#include <versionhelpers.h>
+#if defined(__GNUC__) || defined(__clang__)
+#else
+#pragma warning( pop )
+#endif
/* get the maximum shell command line length according to the OS */
static int raw_maxline()
{
- if ( IsWindowsVersionOrGreater(5,0,0) ) return 8191; /* XP */
- if ( IsWindowsVersionOrGreater(4,0,0) ) return 2047; /* NT 4.x */
+ if ( IsWindowsVersionOrGreater(5,0,0) == TRUE ) return 8191; /* XP */
+ if ( IsWindowsVersionOrGreater(4,0,0) == TRUE ) return 2047; /* NT 4.x */
return 996; /* NT 3.5.1 */
}