Mercurial > hg > octave-lyh > gnulib-hg
changeset 588:cef48d6f8ee8
Test cpp-defined __sun as well as sun, because
in strict ANSI mode, only __sun is defined. From Kaveh Ghazi.
author | Jim Meyering <jim@meyering.net> |
---|---|
date | Sun, 14 Apr 1996 02:12:46 +0000 |
parents | 21fe6b0a7865 |
children | 7a4c77f099c7 |
files | lib/getloadavg.c |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/lib/getloadavg.c +++ b/lib/getloadavg.c @@ -139,7 +139,7 @@ #define decstation #endif -#if defined(sun) && defined(SVR4) +#if (defined(sun) || defined(__sun)) && defined(SVR4) #define SUNOS_5 #endif @@ -168,7 +168,7 @@ #define LOAD_AVE_TYPE long #endif -#ifdef sun +#if defined(sun) || defined(__sun) #define LOAD_AVE_TYPE long #endif @@ -284,7 +284,7 @@ #define NLIST_STRUCT #endif -#ifdef sun +#if defined(sun) || defined(__sun) #define NLIST_STRUCT #endif