RFR: 8293088: Fix compilation with the new Visual Studio preprocessor

Daniel Jeliński djelinski at openjdk.org
Tue Aug 30 12:26:02 UTC 2022


Fix compilation with Zc:preprocessor enabled. 

The flag itself will be enabled in [JDK-8247283](https://bugs.openjdk.org/browse/JDK-8247283); I enabled the flag using instructions found in Magnus's comment on that issue.

Windows 10 SDK version 2104 (10.0.20348.0) is required for successful compilation. Compilation fails with a warning (treated as error by default) with older versions of Windows 10 SDK.

I verified that the compilation completes successfully with this patch, both in debug and in release mode, both with and without Zc:preprocessor.

-------------

Commit messages:
 - Improve standards compliance

Changes: https://git.openjdk.org/jdk/pull/10080/files
 Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=10080&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8293088
  Stats: 6 lines in 2 files changed: 0 ins; 0 del; 6 mod
  Patch: https://git.openjdk.org/jdk/pull/10080.diff
  Fetch: git fetch https://git.openjdk.org/jdk pull/10080/head:pull/10080

PR: https://git.openjdk.org/jdk/pull/10080



More information about the security-dev mailing list