xref: /PHP-8.4/ext/date/config.w32 (revision 16d9bd0a)
1// vim:ft=javascript
2
3EXTENSION("date", "php_date.c", false, "/Iext/date/lib /DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 /DHAVE_TIMELIB_CONFIG_H=1");
4PHP_DATE = "yes";
5ADD_SOURCES("ext/date/lib", "astro.c timelib.c dow.c parse_date.c parse_posix.c parse_tz.c tm2unixtime.c unixtime2tm.c parse_iso_intervals.c interval.c", "date");
6
7ADD_FLAG('CFLAGS_DATE', "/wd4244");
8
9var tl_config = FSO.CreateTextFile("ext/date/lib/timelib_config.h", true);
10tl_config.WriteLine("#include \"config.w32.h\"");
11tl_config.WriteLine("#include <inttypes.h>");
12tl_config.WriteLine("#include <stdint.h>");
13tl_config.WriteLine("#include \"zend.h\"");
14tl_config.WriteLine("#define timelib_malloc  emalloc");
15tl_config.WriteLine("#define timelib_realloc erealloc");
16tl_config.WriteLine("#define timelib_calloc  ecalloc");
17tl_config.WriteLine("#define timelib_strdup  estrdup");
18tl_config.WriteLine("#define timelib_strndup estrndup");
19tl_config.WriteLine("#define timelib_free    efree");
20tl_config.Close();
21
22PHP_INSTALL_HEADERS("ext/date", "php_date.h lib/timelib.h lib/timelib_config.h");
23AC_DEFINE('HAVE_TIMELIB_CONFIG_H', 1, 'Define to 1 if you have the <timelib_config.h> header file.');
24