changeset 158:4a8bedae63b1

trying to force windows version above 7
author Sebastien Jodogne <s.jodogne@gmail.com>
date Sat, 22 Jun 2024 19:40:07 +0200
parents a8ab611d82a3
children 99c14487f96b
files Aws/AwsStaticConfiguration.cmake
diffstat 1 files changed, 7 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/Aws/AwsStaticConfiguration.cmake	Sat Jun 22 18:06:30 2024 +0200
+++ b/Aws/AwsStaticConfiguration.cmake	Sat Jun 22 19:40:07 2024 +0200
@@ -244,7 +244,8 @@
 
   add_definitions(
     -DAWS_USE_IO_COMPLETION_PORTS=1
-    -DCJSON_AS4CPP_HIDE_SYMBOLS=1    # Disable "dllexport" in cJSON
+    # -DCJSON_AS4CPP_HIDE_SYMBOLS=1    # Disable "dllexport" in cJSON => doesn't seem to work
+    -DCJSON_HIDE_SYMBOLS=1
     )
 
   set(AWSSDK_LINK_LIBRARIES
@@ -254,6 +255,11 @@
     userenv
     version
     )
+
+  # Target Windows 7, as "PPROCESSOR_NUMBER" is needed by AWS
+  remove_definitions(-DWINVER=0x0501 -D_WIN32_WINNT=0x0501)
+  add_definitions(-DWINVER=0x0601 -D_WIN32_WINNT=0x0601)
+
 else()
   list(APPEND AWS_SOURCES_SUBDIRS
     #${AWS_C_CAL_SOURCES_DIR}/source/unix/