Project

Profile

Help

HostedRedmine.com has moved to the Planio platform. All logins and passwords remained the same. All users will be able to login and use Redmine just as before. *Read more...*

Feature #854236 ยป 0031-Meson-Define-FREECIV_HAVE_WINSOCK-FREECIV_HAVE_WINSO.patch

Marko Lindqvist, 2019-12-30 06:48 AM

View differences:

gen_headers/meson_freeciv_config.h.in
/* Produce debug version */
#mesondefine FREECIV_DEBUG
/* Winsock available */
#mesondefine FREECIV_HAVE_WINSOCK
/* locale.h available */
#mesondefine FREECIV_HAVE_LOCALE_H
......
/* stdbool.h available */
#mesondefine FREECIV_HAVE_STDBOOL_H
/* winsock2.h available */
#mesondefine FREECIV_HAVE_WINSOCK2_H
#ifdef FREECIV_HAVE_WINSOCK2_H
#define FREECIV_HAVE_WINSOCK2 1
#endif
#endif /* FC__FREECIV_CONFIG_H */
meson.build
'sys/select.h',
'netinet/in.h',
'dirent.h',
'stdbool.h'
'stdbool.h',
'winsock2.h'
]
priv_headers = [
......
if host_system == 'windows'
pub_conf_data.set('FREECIV_HAVE_TINYCTHR', 1)
pub_conf_data.set('FREECIV_HAVE_WINSOCK', 1)
else
pub_conf_data.set('FREECIV_HAVE_PTHREAD', 1)
endif
    (1-1/1)