_defined but empty, as well as the case when it is
undefined. Do the same with the check for _POSIX_MONOTONIC_CLOCK.
Suggested by Larry Jones.
+2005-04-15 Hrvoje Niksic <hniksic@xemacs.org>
+
+ * ptimer.c: Use _POSIX_TIMERS - 0 > 0, which handles the case when
+ _POSIX_TIMERS is defined but empty, as well as the case when it is
+ undefined. Do the same with the check for _POSIX_MONOTONIC_CLOCK.
+ Suggested by Larry Jones.
+
2005-04-15 Hrvoje Niksic <hniksic@xemacs.org>
* ptimer.c: Check that _POSIX_TIMERS is defined as well as > 0.
#if defined(WINDOWS) || defined(__CYGWIN__)
# define PTIMER_WINDOWS /* use Windows timers */
#else
-# if defined(_POSIX_TIMERS) && _POSIX_TIMERS > 0
+# if _POSIX_TIMERS - 0 > 0
# define PTIMER_POSIX /* use POSIX timers (clock_gettime) */
# else
# ifdef HAVE_GETTIMEOFDAY
int id;
int sysconf_name;
} clocks[] = {
-#if defined(_POSIX_MONOTONIC_CLOCK) && _POSIX_MONOTONIC_CLOCK >= 0
+#if _POSIX_MONOTONIC_CLOCK - 0 >= 0
{ CLOCK_MONOTONIC, _SC_MONOTONIC_CLOCK },
#endif
#ifdef CLOCK_HIGHRES