derick Fri Jul 13 17:49:50 2007 UTC
Modified files: (Branch: PHP_5_2)
/php-src/ext/date/lib timelib.c
Log:
- MFH: Let's always use the macro as llabs() requires c99.
http://cvs.php.net/viewvc.cgi/php-src/ext/date/lib/timelib.c?r1=1.7.2.4.2.4&r2=1.7.2.4.2.5&diff_format=u
Index: php-src/ext/date/lib/timelib.c
diff -u php-src/ext/date/lib/timelib.c:1.7.2.4.2.4
php-src/ext/date/lib/timelib.c:1.7.2.4.2.5
--- php-src/ext/date/lib/timelib.c:1.7.2.4.2.4 Fri Jul 13 12:50:00 2007
+++ php-src/ext/date/lib/timelib.c Fri Jul 13 17:49:50 2007
@@ -16,7 +16,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: timelib.c,v 1.7.2.4.2.4 2007/07/13 12:50:00 rrichards Exp $ */
+/* $Id: timelib.c,v 1.7.2.4.2.5 2007/07/13 17:49:50 derick Exp $ */
#include "timelib.h"
#include <ctype.h>
@@ -28,11 +28,7 @@
m = NULL; \
} \
-#if defined(_MSC_VER)
- #define TIMELIB_LLABS(y) y < 0 ? (y * -1) : y
-#else
- #define TIMELIB_LLABS(y) llabs(y)
-#endif
+#define TIMELIB_LLABS(y) (y < 0 ? (y * -1) : y)
timelib_time* timelib_time_ctor()
{
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php