mirror of
https://github.com/kiwix/libkiwix.git
synced 2025-09-08 06:39:53 -04:00
Avoid windows header to define min/max macros.
PR #507 use std::min. But on windows, the header define min and max macros and so the compilation is broken. Add `-DNOMINMAX` define to avoid that.
This commit is contained in:
parent
9c0ae835e2
commit
5f83944699
@ -56,6 +56,10 @@ if target_machine.system() == 'windows' and static_deps
|
|||||||
extra_cflags += '-DCURL_STATICLIB'
|
extra_cflags += '-DCURL_STATICLIB'
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
if target_machine.system() == 'windows'
|
||||||
|
add_project_arguments('-DNOMINMAX', language: 'cpp')
|
||||||
|
endif
|
||||||
|
|
||||||
all_deps = [thread_dep, libicu_dep, libzim_dep, pugixml_dep, libcurl_dep, microhttpd_dep, zlib_dep, xapian_dep]
|
all_deps = [thread_dep, libicu_dep, libzim_dep, pugixml_dep, libcurl_dep, microhttpd_dep, zlib_dep, xapian_dep]
|
||||||
|
|
||||||
inc = include_directories('include', extra_include)
|
inc = include_directories('include', extra_include)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user