summaryrefslogtreecommitdiff
path: root/src/3rdparty/ce-compat/ce_time.h
blob: 6cd33e19149f5c4cc04e33bbcb6f9fc3fc76d9ab (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#ifndef __CE_TIME_H__
#define __CE_TIME_H__

#if defined(_WIN32_WCE) && _WIN32_WCE >= 0x600
/* we need to prototype the time functions for Windows CE >= 6.0 */
#include <crtdefs.h>

#if _WIN32_WCE < 0x800
#ifdef __cplusplus
extern "C" {
#endif

struct tm;


time_t time(time_t* timer);
time_t mktime(struct tm *t);
size_t strftime(char * const s, const size_t maxsize, const char * const format, const struct tm * const t);
struct tm *localtime(const time_t *timer);

#ifdef __cplusplus
}   /* closing brace for extern "C" */
#endif

#endif // _WIN32_WCE < 0x800

#endif /* defined(_WIN32_WCE) && _WIN32_WCE >= 0x600 */

#endif /* !defined(__CE_TIME_H__) */