diff options
author | Janne Anttila <janne.anttila@digia.com> | 2013-03-22 11:30:10 +0200 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-04-24 10:52:20 +0200 |
commit | c09bde5716b4aa93dc3d8992332a5f23b737fa49 (patch) | |
tree | 3ba84d83bfd1a58446301e8f6c1f50a03ae8c971 /src/3rdparty/ce-compat/ce_time.h | |
parent | 9799ca408839612de9f5dd79fbaa8ef405d26a27 (diff) | |
download | qtscript-c09bde5716b4aa93dc3d8992332a5f23b737fa49.tar.gz |
Fix qtscript build for WEC7 by bringing ce-compat back to Qt5 .
JSCore build for WEC7 depends on ce-compat, and apparently it was
vanished as a part of Qt modularization or some other cleanup.
Copied relevant files and pro file lines form Qt4 back to QtScript repo
under 3rdparty folder.
Change-Id: Ic710be105df17b44962553ae3b61401b2dd6fab5
Reviewed-by: Björn Breitmeyer <bjoern.breitmeyer@kdab.com>
Reviewed-by: Johannes Oikarinen <johannes.oikarinen@digia.com>
Reviewed-by: Andreas Holzammer <andreas.holzammer@kdab.com>
Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>
Diffstat (limited to 'src/3rdparty/ce-compat/ce_time.h')
-rw-r--r-- | src/3rdparty/ce-compat/ce_time.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/src/3rdparty/ce-compat/ce_time.h b/src/3rdparty/ce-compat/ce_time.h new file mode 100644 index 0000000..07ca094 --- /dev/null +++ b/src/3rdparty/ce-compat/ce_time.h @@ -0,0 +1,25 @@ +#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> + +#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 /* defined(_WIN32_WCE) && _WIN32_WCE >= 0x600 */ + +#endif /* !defined(__CE_TIME_H__) */ |