Eli Zaretskii wrote:
Does Posix mandate that CLOCK_REALTIME be a macro?
Yes, the POSIX spec for requires CLOCK_REALTIME to be a symbolic
constant, and it says that a symbolic constant must be a macro that expands to a
compile-time constant expression with an integer type (it need not be usab
Gnulib's gettime.c assumes that CLOCK_REALTIME is a preprocessor
macro:
# if defined CLOCK_REALTIME && HAVE_CLOCK_GETTIME
if (clock_gettime (CLOCK_REALTIME, ts) == 0)
return;
# endif
Does Posix mandate that CLOCK_REALTIME be a macro? With mingw.org's
MinGW runtime 5.1.0, it isn't: