Browse Source

Explicitly target Windows 7 for mingw builds

Ivan Savenko 1 year ago
parent
commit
a7b46c0508
1 changed files with 1 additions and 0 deletions
  1. 1 0
      CI/conan/base/cross-macro.j2

+ 1 - 0
CI/conan/base/cross-macro.j2

@@ -17,4 +17,5 @@ RC={{ target_host }}-windres
 {% macro generate_conf(target_host) -%}
 tools.build:compiler_executables = {"c": "{{ target_host }}-gcc", "cpp": "{{ target_host }}-g++"}
 tools.build:sysroot = /usr/{{ target_host }}
+tools.build:defines = ["WINVER=0x0601", "_WIN32_WINNT=0x0601"]
 {%- endmacro -%}