simplify code for ext/date/config.{m4,w32}
| From: | Xuefer | Date: | Mon, 05 May 2008 13:31:21 +0000 |
| Subject: | simplify code for ext/date/config.{m4,w32} | ||
| Groups: | php.internals | ||
| Request: | Send a blank email to internals+get-37466@lists.php.net to get a copy of this message | ||
in ext/date/ of php5/6, i see the following code
===config.m4=====
cat > $ext_builddir/lib/timelib_config.h <<EOF
#ifdef PHP_WIN32
# include "config.w32.h"
#else
# include <php_config.h>
#endif
EOF
===config.w32=====
var tl_config = FSO.CreateTextFile("ext/date/lib/timelib_config.h", true);
tl_config.WriteLine("#include \"config.w32.h\"");
tl_config.Close();
================
if #ifdef PHP_WIN32 works, why do we bother generate? just add a
timelib_config.h in cvs