summaryrefslogtreecommitdiff
path: root/configure.ac
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 /configure.ac
parent20b38ad447a1014587ed9ea2e73bf817aa446b31 (diff)
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 'configure.ac')
-rw-r--r--configure.ac1
1 files changed, 1 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 57ae1f5..4ca3d09 100644
--- a/configure.ac
+++ b/configure.ac
@@ -298,6 +298,7 @@ if test "x${have_win32}" = "xyes" ; then
298 # autotools macro and CXX is always set to g++ even if 298 # autotools macro and CXX is always set to g++ even if
299 # it's not found. So we are using an internal variable 299 # it's not found. So we are using an internal variable
300 # that does the work for now, may get broken in the future. 300 # that does the work for now, may get broken in the future.
301 AC_DEFINE([_POSIX_C_SOURCE], [200809L], [Define the POSIX version])
301 if test "x${ac_ct_CXX}" = "x" -a "x${CXX}" = "xg++"; then 302 if test "x${ac_ct_CXX}" = "x" -a "x${CXX}" = "xg++"; then
302 AC_MSG_ERROR([efl requires a C++ compiler got ${ac_ct_CXX} and ${CXX}.]) 303 AC_MSG_ERROR([efl requires a C++ compiler got ${ac_ct_CXX} and ${CXX}.])
303 fi 304 fi