[Mingw-users] clock_gettime and CLOCK_REALTIME

Back to archive index

Eli Zaretskii eliz****@gnu*****
Mon Jul 30 04:03:55 JST 2018


It seems Posix requires CLOCK_REALTIME (and probably also
CLOCK_MONOTONIC) to be macros.  See the discussion starting at

  https://lists.gnu.org/archive/html/bug-gnulib/2018-07/msg00116.html

But MinGW runtime 5.1.0 headers define those two as variable names.

This issue currently prevents using MinGW clock_gettime instead of
gettimeofday, since the latter is now being flagged as deprecated when
MinGW runtime 5.1.0 headers are used.

Thanks.




More information about the MinGW-Users mailing list
Back to archive index