Skip to content

Commit bd52f4a

Browse files
committed
make timelib_config.h inclusion configurable
1 parent bb2380e commit bd52f4a

5 files changed

Lines changed: 371 additions & 365 deletions

File tree

configure.in

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,8 @@ PHP_INIT_BUILD_SYSTEM
186186
dnl We want this one before the checks, so the checks can modify CFLAGS.
187187
test -z "$CFLAGS" && auto_cflags=1
188188

189+
CFLAGS="$CFLAGS -D HAVE_TIMELIB_CONFIG_H=1"
190+
189191
abs_srcdir=`(cd $srcdir; pwd)`
190192
abs_builddir=`pwd`
191193

ext/date/lib/timelib_structs.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,9 @@
2121
#ifndef __TIMELIB_STRUCTS_H__
2222
#define __TIMELIB_STRUCTS_H__
2323

24-
#include "timelib_config.h"
24+
#ifdef HAVE_TIMELIB_CONFIG_H
25+
# include "timelib_config.h"
26+
#endif
2527

2628
#ifndef TIMELIB_OMIT_STDINT
2729

scripts/phpize.m4

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ dnl
1919

2020
test -z "$CFLAGS" && auto_cflags=1
2121

22+
CFLAGS="$CFLAGS -D HAVE_TIMELIB_CONFIG_H=1"
23+
2224
abs_srcdir=`(cd $srcdir && pwd)`
2325
abs_builddir=`pwd`
2426

win32/build/config.w32

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ DEFINE('CFLAGS_PHP_OBJ', '$(CFLAGS_PHP) $(STATIC_EXT_CFLAGS)');
138138

139139
// General CFLAGS for building objects
140140
DEFINE("CFLAGS", "/nologo /FD $(BASE_INCLUDES) /D _WINDOWS \
141-
/D ZEND_WIN32=1 /D PHP_WIN32=1 /D WIN32 /D _MBCS /W3 ");
141+
/D ZEND_WIN32=1 /D PHP_WIN32=1 /D WIN32 /D _MBCS /W3 /D HAVE_TIMELIB_CONFIG_H=1 ");
142142

143143
if (VCVERS < 1400) {
144144
// Enable automatic precompiled headers

0 commit comments

Comments
 (0)