summaryrefslogtreecommitdiff
path: root/src/win32/sys_time.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/win32/sys_time.h')
-rw-r--r--src/win32/sys_time.h26
1 files changed, 11 insertions, 15 deletions
diff --git a/src/win32/sys_time.h b/src/win32/sys_time.h
index 39f97f7..ca6e0a7 100644
--- a/src/win32/sys_time.h
+++ b/src/win32/sys_time.h
@@ -1,27 +1,23 @@
-#ifndef STLINK_TIME_H
-#define STLINK_TIME_H
+#ifndef SYS_TIME_H
+#define SYS_TIME_H
+
+#include <stdint.h>
#ifdef STLINK_HAVE_SYS_TIME_H
+
#include <sys/time.h>
+
#else
#include <windows.h>
struct timezone {
- int tz_minuteswest;
- int tz_dsttime;
+ int32_t tz_minuteswest;
+ int32_t tz_dsttime;
};
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-int gettimeofday(struct timeval *tv, struct timezone *tz);
-
-#ifdef __cplusplus
-}
-#endif
+int32_t gettimeofday(struct timeval *tv, struct timezone *tz);
-#endif /* STLINK_HAVE_SYS_TIME_H */
+#endif // STLINK_HAVE_SYS_TIME_H
-#endif /* STLINK_TIME_H */
+#endif // SYS_TIME_H