summaryrefslogtreecommitdiff
path: root/meson.build
diff options
context:
space:
mode:
authorVincent Torri <vincent.torri@gmail.com>2019-05-08 10:14:45 -0400
committerMike Blumenkrantz <zmike@samsung.com>2019-05-08 10:14:45 -0400
commita41c5f7a0656f9b8a1b00bee65f03d2455ed6547 (patch)
tree8ff8855e721ead56e4ee906db21ecc5cde3e7e63 /meson.build
parent20b38ad447a1014587ed9ea2e73bf817aa446b31 (diff)
downloadefl-a41c5f7a0656f9b8a1b00bee65f03d2455ed6547.tar.gz
Evil: remove localtime_r as mingw-w64 defines it when _POSIX_C_SOURCE is defined
Summary: localtime_r() is already defined by mingw-w64 when _POSIX_C_SOURCE is defined edit: also only define _POSIX_C_SOURCE (correctly) on windows Reviewers: bu5hm4n Reviewed By: bu5hm4n Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D8859
Diffstat (limited to 'meson.build')
-rw-r--r--meson.build1
1 files changed, 1 insertions, 0 deletions
diff --git a/meson.build b/meson.build
index 2595461c62..e26d17e507 100644
--- a/meson.build
+++ b/meson.build
@@ -102,6 +102,7 @@ foreach lang : ['c', 'objc', 'cpp']
add_global_arguments('-DEFL_BUILD=1', language: lang)
add_global_arguments('-DELM_INTERNAL_API_ARGESFSDFEFC=1', language: lang)
if sys_windows == true
+ add_global_arguments('-D_POSIX_C_SOURCE=200809L', language: lang)
if (get_option('windows-version') == 'vista')
add_global_arguments('-DWINVER=0x060', language: lang)
add_global_arguments('-D_WIN32_WINNT=0x0600', language: lang)