summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/ouroboros/time_utils.h11
1 files changed, 7 insertions, 4 deletions
diff --git a/include/ouroboros/time_utils.h b/include/ouroboros/time_utils.h
index d7274c1d..4b3f3463 100644
--- a/include/ouroboros/time_utils.h
+++ b/include/ouroboros/time_utils.h
@@ -23,14 +23,17 @@
#ifndef OUROBOROS_TIME_UTILS_H
#define OUROBOROS_TIME_UTILS_H
-#ifndef MILLION
-#define MILLION 1000000L
+#ifdef MILLION
+#undef MILLION
#endif
-#ifndef BILLION
-#define BILLION 1000000000L
+#ifdef BILLION
+#undef BILLION
#endif
+#define MILLION 1000000L
+#define BILLION 1000000000L
+
#include <sys/time.h>
#include <limits.h> /* LONG_MAX */