Skip to content

Commit

Permalink
Ask windows to not define min and max.
Browse files Browse the repository at this point in the history
  • Loading branch information
mgautierfr committed Aug 30, 2024
1 parent 2eb950f commit 0ffc4b8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ compiler = meson.get_compiler('cpp')

add_global_arguments('-DKIWIX_TOOLS_VERSION="@0@"'.format(meson.project_version()), language : 'cpp')

if host_machine.system() == 'windows'
add_project_arguments('-DNOMINMAX', language: 'cpp')
endif

static_linkage = get_option('static-linkage')
if static_linkage
# Static build is not supported on MacOS
Expand Down

0 comments on commit 0ffc4b8

Please sign in to comment.