aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal
diff options
context:
space:
mode:
Diffstat (limited to 'os/hal')
-rw-r--r--os/hal/include/rtc.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/os/hal/include/rtc.h b/os/hal/include/rtc.h
index 626fd9f90..2038ca9a9 100644
--- a/os/hal/include/rtc.h
+++ b/os/hal/include/rtc.h
@@ -35,6 +35,8 @@
#if HAL_USE_RTC || defined(__DOXYGEN__)
+#include <time.h>
+
/*===========================================================================*/
/* Driver constants. */
/*===========================================================================*/
@@ -100,7 +102,6 @@ typedef struct {
} RTCDateTime;
#include "rtc_lld.h"
-#include <time.h>
/*===========================================================================*/
/* Driver macros. */