diff options
Diffstat (limited to 'gcc/ada/g-calend.adb')
-rw-r--r-- | gcc/ada/g-calend.adb | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/gcc/ada/g-calend.adb b/gcc/ada/g-calend.adb index 3b731e1eecd..8f309de7251 100644 --- a/gcc/ada/g-calend.adb +++ b/gcc/ada/g-calend.adb @@ -6,7 +6,7 @@ -- -- -- B o d y -- -- -- --- Copyright (C) 1999-2012, AdaCore -- +-- Copyright (C) 1999-2014, AdaCore -- -- -- -- GNAT is free software; you can redistribute it and/or modify it under -- -- terms of the GNU General Public License as published by the Free Soft- -- @@ -29,8 +29,9 @@ -- -- ------------------------------------------------------------------------------ -package body GNAT.Calendar is +with Interfaces.C.Extensions; +package body GNAT.Calendar is use Ada.Calendar; use Interfaces; @@ -341,12 +342,12 @@ package body GNAT.Calendar is procedure timeval_to_duration (T : not null access timeval; - sec : not null access C.long; + sec : not null access C.Extensions.long_long; usec : not null access C.long); pragma Import (C, timeval_to_duration, "__gnat_timeval_to_duration"); Micro : constant := 10**6; - sec : aliased C.long; + sec : aliased C.Extensions.long_long; usec : aliased C.long; begin @@ -361,14 +362,14 @@ package body GNAT.Calendar is function To_Timeval (D : Duration) return timeval is procedure duration_to_timeval - (Sec : C.long; + (Sec : C.Extensions.long_long; Usec : C.long; T : not null access timeval); pragma Import (C, duration_to_timeval, "__gnat_duration_to_timeval"); Micro : constant := 10**6; Result : aliased timeval; - sec : C.long; + sec : C.Extensions.long_long; usec : C.long; begin @@ -376,7 +377,7 @@ package body GNAT.Calendar is sec := 0; usec := 0; else - sec := C.long (D - 0.5); + sec := C.Extensions.long_long (D - 0.5); usec := C.long ((D - Duration (sec)) * Micro - 0.5); end if; |