summaryrefslogtreecommitdiff
path: root/firmware/include
diff options
context:
space:
mode:
authorFrank Gevaerts <frank@gevaerts.be>2008-08-29 21:08:38 +0000
committerFrank Gevaerts <frank@gevaerts.be>2008-08-29 21:08:38 +0000
commit5d22e3cbdd251819a4d2d07b9a12994d5aef778d (patch)
tree4c6a81187ccf065a5f296a903b9f7da88503e403 /firmware/include
parentcc31b1fbdae455f975b69dd6bffc23d8bd021566 (diff)
downloadrockbox-5d22e3cbdd251819a4d2d07b9a12994d5aef778d.tar.gz
rockbox-5d22e3cbdd251819a4d2d07b9a12994d5aef778d.zip
Add wpseditor, the Google Summer of Code 2008 project of Rostislav Chekan. Closes FS#9327
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18362 a1c6a512-1295-4272-9138-f99709370657
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