Resolve build failure due to inttypes.h inclusion in hrctimer.h 52/4952/1
authorEvan Ramos <evan@hpccharm.com>
Thu, 14 Feb 2019 20:23:58 +0000 (14:23 -0600)
committerEvan Ramos <evan@hpccharm.com>
Thu, 14 Feb 2019 20:23:58 +0000 (14:23 -0600)
Change-Id: I4ae37d943be93c0ec0c112f5c00c8ccdce20dedc

src/conv-core/hrctimer.h

index dae43ece0d24cfa08684ad60b1a3e95a51745972..1f1bae4f9121990415cb72e83366300806d92807 100644 (file)
@@ -1,13 +1,24 @@
 #ifndef HRCTIMER_H
 #define HRCTIMER_H
+
+#ifndef __STDC_FORMAT_MACROS
+# define __STDC_FORMAT_MACROS
+#endif
+#ifndef __STDC_LIMIT_MACROS
+# define __STDC_LIMIT_MACROS
+#endif
 #include <inttypes.h>
+
 #ifdef __cplusplus
 extern "C" {
 #endif
-double inithrc();
-double gethrctime();
-uint64_t gethrctime_micro();
+
+double inithrc(void);
+double gethrctime(void);
+uint64_t gethrctime_micro(void);
+
 #ifdef __cplusplus
 }
 #endif
+
 #endif