mirror of
https://github.com/kiwix/libkiwix.git
synced 2025-06-26 10:11:30 +00:00
Fix for Windows
- "winsock2.h" needs to be included before "windows.h". But if a compilation unit include "windows.h" and after "networkTools.h", we fails and it is complicated to handle. The include must not be in the header but in the cpp - windows define some ERROR macro. It is a pitty but we cannot use `ERROR` in our enum. - If build statically using mingw we need to define `CURL_STATICLIB`
This commit is contained in:
@ -19,6 +19,12 @@ libzim_dep = dependency('libzim', version : '>=4.0.0', static:static_deps)
|
||||
pugixml_dep = dependency('pugixml', static:static_deps)
|
||||
libcurl_dep = dependency('libcurl', static:static_deps)
|
||||
|
||||
if target_machine.system() == 'windows' and static_deps
|
||||
add_project_arguments('-DCURL_STATICLIB', language : 'cpp')
|
||||
endif
|
||||
|
||||
|
||||
|
||||
ctpp2_include_path = ''
|
||||
has_ctpp2_dep = false
|
||||
ctpp2_prefix_install = get_option('ctpp2-install-prefix')
|
||||
|
Reference in New Issue
Block a user