summaryrefslogtreecommitdiff
path: root/Xarch.h
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@sun.com>2009-06-14 09:33:16 -0700
committerAlan Coopersmith <alan.coopersmith@sun.com>2009-06-15 08:09:36 -0700
commit5aaec3c7a583354a07ec765327fd0edd6216981f (patch)
treeec16c230c0b075c5f4ea6aa67387d51f7dd59f69 /Xarch.h
parent5bad478221c54c0dbf682ef2569f6ca5ac050049 (diff)
Drop support for SunOS 4 and Solaris releases older than 2.5 (1995)
Includes changing remaining sun ifdef's to check for standard-conformant / non-namespace-polluting #ifdef __sun instead of older #ifdef sun. Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
Diffstat (limited to 'Xarch.h')
-rw-r--r--Xarch.h8
1 files changed, 3 insertions, 5 deletions
diff --git a/Xarch.h b/Xarch.h
index 3548105..58fb9a5 100644
--- a/Xarch.h
+++ b/Xarch.h
@@ -39,10 +39,8 @@
# else
-# ifdef SVR4
-# if !defined(sun)
-# include <sys/byteorder.h>
-# endif
+# if defined(SVR4) || defined(__SVR4)
+# include <sys/byteorder.h>
# elif defined(CSRG_BASED)
# if defined(__NetBSD__) || defined(__OpenBSD__)
# include <sys/types.h>
@@ -75,7 +73,7 @@
# define LITTLE_ENDIAN 1234
# define BIG_ENDIAN 4321
-# if defined(sun) && defined(SVR4)
+# if defined(__sun) && defined(__SVR4)
# include <sys/isa_defs.h>
# ifdef _LITTLE_ENDIAN
# define BYTE_ORDER LITTLE_ENDIAN