aboutsummaryrefslogtreecommitdiff
path: root/gcc/ada/adaint.h
diff options
context:
space:
mode:
authorDoug Rupp <rupp@adacore.com>2021-04-25 21:52:09 -0700
committerPierre-Marie de Rodat <derodat@adacore.com>2021-07-05 13:09:12 +0000
commita0bdd4b03b87a01a5984aa5c7ad94f66b2a7bc9e (patch)
tree65506f7ae0df06decc27986f88f53539a2aa4534 /gcc/ada/adaint.h
parente7b17be97330d2e42dd7e8e84a5b16a167241931 (diff)
downloadgcc-a0bdd4b03b87a01a5984aa5c7ad94f66b2a7bc9e.zip
gcc-a0bdd4b03b87a01a5984aa5c7ad94f66b2a7bc9e.tar.gz
gcc-a0bdd4b03b87a01a5984aa5c7ad94f66b2a7bc9e.tar.bz2
[Ada] The Unix Epochalyse of 2038 - OS_Time
gcc/ada/ * adaint.h (OS_Time): typedef as long long. * osint.adb (Underlying_OS_Time): Declare as 64-bit signed type. * libgnat/s-os_lib.adb ("<"): Compare OS_Time as Long_Long_Integer. ("<="): Likewise. (">"): Likewise. (">="): Likewise. * libgnat/s-os_lib.ads (OS_Time): Declare as 64-bit signed type.
Diffstat (limited to 'gcc/ada/adaint.h')
-rw-r--r--gcc/ada/adaint.h4
1 files changed, 0 insertions, 4 deletions
diff --git a/gcc/ada/adaint.h b/gcc/ada/adaint.h
index 6ef61e7..b03294f 100644
--- a/gcc/ada/adaint.h
+++ b/gcc/ada/adaint.h
@@ -101,11 +101,7 @@ extern "C" {
#endif
/* Type corresponding to GNAT.OS_Lib.OS_Time */
-#if defined (_WIN64)
typedef long long OS_Time;
-#else
-typedef long OS_Time;
-#endif
#define __int64 long long
GNAT_STRUCT_STAT;