Fix: time constants already defined on macOS
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Fri, 6 Sep 2019 17:33:18 +0000 (13:33 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Fri, 6 Sep 2019 17:54:00 +0000 (13:54 -0400)
commit0dfbc67588eff82df38b1ad18f77c061df655a01
tree6591444266e1aa4f643d20ae1619ac5fd5b5cee0
parent966037555b8b231bebfc0ed0280e7d54c31a56dd
Fix: time constants already defined on macOS

Include the compatibility time.h header in the common/time.h
to override any platform-defined constants. It seems that the
NSEC_PER_SEC (and other similar definitions) are defined to
nothing on macOS. This was already fixed in the compatibility
header in the past.

This also adds USEC_PER_SEC to the list of undef-initions
on macOS.

Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
src/common/compat/time.h
src/common/time.h
This page took 0.025674 seconds and 4 git commands to generate.