]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/boost/tools/build/src/engine/execnt.cpp
import quincy beta 17.1.0
[ceph.git] / ceph / src / boost / tools / build / src / engine / execnt.cpp
index f8934fd3652b72704f1c0b34035a41b4bc1d0bbc..0b28087fe3790ed85337ed77b3662cefa3dd9262 100644 (file)
 #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 */
@@ -569,8 +579,8 @@ static void invoke_cmd( char const * const command, int const slot )
 
 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 */
 }