Disable MSVC warning 4116 to avoid the 'unnamed type definition in
parentheses' warning caused by TYPE_ALIGNMENT().
diff --git a/tools/winapi/winapi_test b/tools/winapi/winapi_test
index 4741a10..d3390de 100755
--- a/tools/winapi/winapi_test
+++ b/tools/winapi/winapi_test
@@ -523,6 +523,10 @@
print OUT " */\n";
print OUT "#endif\n";
print OUT "\n";
+ print OUT "#if defined(TYPE_ALIGNMENT) && defined(_MSC_VER) && _MSC_VER >= 800 && !defined(__cplusplus)\n";
+ print OUT "#pragma warning(disable:4116)\n";
+ print OUT "#endif\n";
+ print OUT "\n";
print OUT "#if !defined(TYPE_ALIGNMENT) && defined(_TYPE_ALIGNMENT)\n";
print OUT "# define TYPE_ALIGNMENT _TYPE_ALIGNMENT\n";
print OUT "#endif\n";