2
0
mirror of https://github.com/boostorg/build.git synced 2026-02-13 00:12:11 +00:00

Avoid pragma syntax warning in non-msvc compilers.

This commit is contained in:
Rene Rivera
2020-03-31 14:33:44 -05:00
parent 107c3d30c8
commit 085fc552c9

View File

@@ -55,10 +55,18 @@
#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 )
#pragma GCC diagnostic pop
#endif
/* get the maximum shell command line length according to the OS */