From c57eb84863ac0ce35fd91e1171fc010916cc886c Mon Sep 17 00:00:00 2001 From: Bert Belder Date: Sun, 12 Jan 2020 22:55:23 +0100 Subject: [PATCH] build: work around bug in in Windows SDK 10.0.17763.0 and maybe other versions --- CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 1b082d4..8b8c5e6 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -12,6 +12,9 @@ else() add_compile_options(-Wall -Wextra -Werror) endif() +# Work around bug in in Windows SDK 10.0.17763.0 and maybe other versions. +add_definitions(-D_CRT_HAS_CXX17=0) + set(DIST_DIR "dist") set(TEST_RUNNER "tools/run-tests.js")