diff options
author | Eric Botcazou <ebotcazou@adacore.com> | 2015-05-30 21:13:59 +0000 |
---|---|---|
committer | Eric Botcazou <ebotcazou@gcc.gnu.org> | 2015-05-30 21:13:59 +0000 |
commit | 329be64b06b51c21981dc9aba66da805dc4398bf (patch) | |
tree | 939ed8411c661f6e8dcf7ab478a1cc1abfa98185 /gcc/ada/adaint.h | |
parent | c67e8801d95237cf126a5b8ad6c2f59fc92c455a (diff) | |
download | gcc-329be64b06b51c21981dc9aba66da805dc4398bf.zip gcc-329be64b06b51c21981dc9aba66da805dc4398bf.tar.gz gcc-329be64b06b51c21981dc9aba66da805dc4398bf.tar.bz2 |
adaint.c: Test for __linux__ instead of linux and __sun__ instead of sun.
* adaint.c: Test for __linux__ instead of linux and __sun__ instead
of sun. Add missing leading underscore to AIX. Remove #elif 0.
* adaint.h: Likewise.
* cio.c: Likewise.
* cstreams.c: Likewise.
* env.c: Likewise.
* gsocket.h: Likewise.
* init.c: Likewise. Test for __i386__ instead of i386.
* link.c: Likewise.
* s-oscons-tmplt.c: Likewise.
* sysdep.c: Likewise.
* terminals.c: Likewise. Use BSD symbol instead of FREEBSD.
* tracebak.c: Likewise. Test for __sparc__ instead of sparc.
From-SVN: r223890
Diffstat (limited to 'gcc/ada/adaint.h')
-rw-r--r-- | gcc/ada/adaint.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/ada/adaint.h b/gcc/ada/adaint.h index c53a8bf..0ec9dd2 100644 --- a/gcc/ada/adaint.h +++ b/gcc/ada/adaint.h @@ -51,7 +51,7 @@ extern "C" { determine at compile time what support the system offers for large files. For now we just list the platforms we have manually tested. */ -#if defined (__GLIBC__) || defined (sun) +#if defined (__GLIBC__) || defined (__sun__) #define GNAT_FOPEN fopen64 #define GNAT_OPEN open64 #define GNAT_STAT stat64 @@ -279,10 +279,10 @@ extern char * __gnat_locate_file_with_predicate (char *, char *, int (*)(char*)); #if defined (__ANDROID__) -#undef linux +#undef __linux__ extern void *__gnat_lwp_self (void); -#elif defined (linux) +#elif defined (__linux__) extern void *__gnat_lwp_self (void); /* Routines for interface to required CPU set primitives */ |