summaryrefslogtreecommitdiff
path: root/ext/date/lib/timelib.c
diff options
context:
space:
mode:
authorDerick Rethans <derick@php.net>2007-07-13 17:49:50 (GMT)
committerDerick Rethans <derick@php.net>2007-07-13 17:49:50 (GMT)
commitcd34e1c27ae31c643c278aac179cf3f4cf54f9b5 (patch)
treec058c29ca7c265d525744d352e12970780d78c4e /ext/date/lib/timelib.c
parent241e66a7088b05bb8d9ce37d057fda9ccc4ab7c6 (diff)
downloadphp-cd34e1c27ae31c643c278aac179cf3f4cf54f9b5.tar.gz
- MFH: Let's always use the macro as llabs() requires c99.
Diffstat (limited to 'ext/date/lib/timelib.c')
-rw-r--r--ext/date/lib/timelib.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/ext/date/lib/timelib.c b/ext/date/lib/timelib.c
index 6b2fb81..6dd86e1 100644
--- a/ext/date/lib/timelib.c
+++ b/ext/date/lib/timelib.c
@@ -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()
{