summaryrefslogtreecommitdiff
path: root/firmware/include
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/include')
-rw-r--r--firmware/include/inttypes.h5
-rw-r--r--firmware/include/time.h6
2 files changed, 11 insertions, 0 deletions
diff --git a/firmware/include/inttypes.h b/firmware/include/inttypes.h
index 1697f691d9..f7f5099bd7 100644
--- a/firmware/include/inttypes.h
+++ b/firmware/include/inttypes.h
@@ -22,6 +22,8 @@
22#ifndef __INTTYPES_H__ 22#ifndef __INTTYPES_H__
23#define __INTTYPES_H__ 23#define __INTTYPES_H__
24 24
25#ifndef WPSEDITOR
26
25#include <limits.h> 27#include <limits.h>
26 28
27/* 8 bit */ 29/* 8 bit */
@@ -103,5 +105,8 @@
103#define uint64_t unsigned long long 105#define uint64_t unsigned long long
104 106
105#endif 107#endif
108#else
109#include <stdint.h>
110#endif /* !WPSEDITOR*/
106 111
107#endif /* __INTTYPES_H__ */ 112#endif /* __INTTYPES_H__ */
diff --git a/firmware/include/time.h b/firmware/include/time.h
index 23f72fd93d..9200e82232 100644
--- a/firmware/include/time.h
+++ b/firmware/include/time.h
@@ -7,6 +7,11 @@
7#ifndef _TIME_H_ 7#ifndef _TIME_H_
8#define _TIME_H_ 8#define _TIME_H_
9 9
10#ifdef WPSEDITOR
11#include <sys/types.h>
12#include <time.h>
13#endif
14
10struct tm 15struct tm
11{ 16{
12 int tm_sec; 17 int tm_sec;
@@ -34,3 +39,4 @@ struct tm *localtime(const time_t *timep);
34 39
35#endif /* _TIME_H_ */ 40#endif /* _TIME_H_ */
36 41
42