cvs: php-src /ext/date/lib parse_date.c timelib.h
| From: | Frank M. Kromann | Date: | Thu, 30 Jun 2005 23:03:38 +0000 |
| Subject: | cvs: php-src /ext/date/lib parse_date.c timelib.h | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-32611@lists.php.net to get a copy of this message | ||
fmk Thu Jun 30 19:03:38 2005 EDT
Modified files:
/php-src/ext/date/lib parse_date.c timelib.h
Log:
Fix Win32 build
http://cvs.php.net/diff.php/php-src/ext/date/lib/parse_date.c?r1=1.17&r2=1.18&ty=u
Index: php-src/ext/date/lib/parse_date.c
diff -u php-src/ext/date/lib/parse_date.c:1.17 php-src/ext/date/lib/parse_date.c:1.18
--- php-src/ext/date/lib/parse_date.c:1.17 Wed Jun 29 15:07:04 2005
+++ php-src/ext/date/lib/parse_date.c Thu Jun 30 19:03:36 2005
@@ -18,7 +18,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: parse_date.c,v 1.17 2005/06/29 19:07:04 derick Exp $ */
+/* $Id: parse_date.c,v 1.18 2005/06/30 23:03:36 fmk Exp $ */
#include "timelib.h"
@@ -34,7 +34,6 @@
#endif
#if defined(_MSC_VER)
-# define strcasecmp stricmp
# define strtoll(s, f, b) _atoi64(s)
#elif !defined(HAVE_STRTOLL)
# if defined(HAVE_ATOLL)
http://cvs.php.net/diff.php/php-src/ext/date/lib/timelib.h?r1=1.5&r2=1.6&ty=u
Index: php-src/ext/date/lib/timelib.h
diff -u php-src/ext/date/lib/timelib.h:1.5 php-src/ext/date/lib/timelib.h:1.6
--- php-src/ext/date/lib/timelib.h:1.5 Thu Jun 30 17:38:06 2005
+++ php-src/ext/date/lib/timelib.h Thu Jun 30 19:03:36 2005
@@ -16,7 +16,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: timelib.h,v 1.5 2005/06/30 21:38:06 derick Exp $ */
+/* $Id: timelib.h,v 1.6 2005/06/30 23:03:36 fmk Exp $ */
#ifndef __TIMELIB_H__
#define __TIMELIB_H__
@@ -34,6 +34,10 @@
#define LONG_MIN (- LONG_MAX - 1)
#endif
+#if defined(_MSC_VER)
+#define strcasecmp stricmp
+#endif
+
/* From dow.c */
timelib_sll timelib_day_of_week(timelib_sll y, timelib_sll m, timelib_sll d);
timelib_sll timelib_day_of_year(timelib_sll y, timelib_sll m, timelib_sll d);