sysdep.c: Implement __gnat_localtime_r as call to localtime_r on AIX.
authorMatthew Gingell <gingell@adacore.com>
Tue, 15 Mar 2005 16:18:57 +0000 (17:18 +0100)
committerArnaud Charlet <charlet@gcc.gnu.org>
Tue, 15 Mar 2005 16:18:57 +0000 (17:18 +0100)
2005-03-08  Matthew Gingell  <gingell@adacore.com>

* sysdep.c: Implement __gnat_localtime_r as call to localtime_r on AIX.

From-SVN: r96510

gcc/ada/sysdep.c

index e18fb2276e127e96f89b8c97a602745d105cafda..ec6ef7fa6f2cc2f568399db64a7f926ee505e871 100644 (file)
@@ -6,7 +6,7 @@
  *                                                                          *
  *                          C Implementation File                           *
  *                                                                          *
- *          Copyright (C) 1992-2004 Free Software Foundation, Inc.          *
+ *          Copyright (C) 1992-2005 Free Software Foundation, Inc.          *
  *                                                                          *
  * 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- *
@@ -655,16 +655,14 @@ get_gmtoff (void)
 
 /* Definition of __gnat_locatime_r used by a-calend.adb */
 
-#if defined (_AIX) || defined (__EMX__)
+#if defined (__EMX__)
 #define Lock_Task system__soft_links__lock_task
 extern void (*Lock_Task) (void);
 
 #define Unlock_Task system__soft_links__unlock_task
 extern void (*Unlock_Task) (void);
 
-/* Provide reentrant version of localtime on Aix and OS/2. Note that AiX does
-   provide localtime_r, but in the library libc_r which doesn't get included
-   systematically, so we can't use it. */
+/* Provide reentrant version of localtime on OS/2. */
 
 extern struct tm *__gnat_localtime_r (const time_t *, struct tm *);