Added workerounds for Windows SDKs shipped with MSVC-7.1 and 8.

This commit is contained in:
Andrey Semashev
2018-03-17 21:29:28 +03:00
parent 169d0ad34b
commit 9fcdbe2135
2 changed files with 3163 additions and 3155 deletions
+3154 -3153
View File
File diff suppressed because it is too large Load Diff
+9 -2
View File
@@ -21,6 +21,7 @@ my $header = <<'END';
#include <boost/winapi/error_codes.hpp>
#include <windows.h>
#include <winerror.h>
#include <boost/predef/platform/windows_uwp.h>
#include "abi_test_tools.hpp"
int main()
@@ -41,9 +42,15 @@ while (<>)
chomp($line);
if ($line =~ /^\s*BOOST_CONSTEXPR_OR_CONST\s+DWORD_\s+([a-zA-Z_\d]+)_\s+.*$/)
{
print "#if defined(", $1 , ")\n";
print "#if ";
# Some constants have different values in different Windows SDKs
if ($1 eq "ERROR_IPSEC_IKE_NEG_STATUS_END")
{
print "BOOST_PLAT_WINDOWS_SDK_VERSION >= BOOST_WINAPI_WINDOWS_SDK_6_0 && ";
}
print "defined(", $1 , ")\n";
print " BOOST_WINAPI_TEST_CONSTANT(", $1 , ");\n";
print "#endif // defined(", $1 , ")\n";
print "#endif\n";
}
}