Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2017-09-07 09:24:22 +0300
committerSebastian Huber <sebastian.huber@embedded-brains.de>2017-09-07 16:39:34 +0300
commit4de8754bac676fc7f29082ccf8281b1c73ce629e (patch)
treea45eb9f1ddbd801106e447cc645a8d34fd26ca36 /newlib/newlib.hin
parentad45b86533a47ae33ec99cebc61aee96b57e17a5 (diff)
Change time_t to 64-bit by default
In order to avoid the year 2038 problem, define time_t to a signed integer with at least 64-bits. The type for time_t can be forced to long with the --enable-newlib-long-time_t configure option or with the _USE_LONG_TIME_T system configuration define. Signed-off-by: Sebastian Huber <sebastian.huber@embedded-brains.de>
Diffstat (limited to 'newlib/newlib.hin')
-rw-r--r--newlib/newlib.hin3
1 files changed, 3 insertions, 0 deletions
diff --git a/newlib/newlib.hin b/newlib/newlib.hin
index 45c683187..18306f293 100644
--- a/newlib/newlib.hin
+++ b/newlib/newlib.hin
@@ -90,6 +90,9 @@
/* Define if using retargetable functions for default lock routines. */
#undef _RETARGETABLE_LOCKING
+/* Define to use type long for time_t. */
+#undef _WANT_USE_LONG_TIME_T
+
/*
* Iconv encodings enabled ("to" direction)
*/