diff options
author | 2007-04-08 20:42:43 +0000 | |
---|---|---|
committer | 2007-04-08 20:42:43 +0000 | |
commit | 31cecf93dd463807be20e8b81e1b3a3485de6dcf (patch) | |
tree | cf4a3efb6a7d4d6bb5c999235068103a4bf6dc11 /porting.h | |
parent | make sure LITTLE_ENDIAN/BIG_ENDIAN exist in the fallback case (diff) | |
download | pax-utils-31cecf93dd463807be20e8b81e1b3a3485de6dcf.tar.gz pax-utils-31cecf93dd463807be20e8b81e1b3a3485de6dcf.tar.bz2 pax-utils-31cecf93dd463807be20e8b81e1b3a3485de6dcf.zip |
relax a little if only one endian is defined
Diffstat (limited to 'porting.h')
-rw-r--r-- | porting.h | 9 |
1 files changed, 3 insertions, 6 deletions
@@ -1,7 +1,7 @@ /* * Copyright 2005-2006 Gentoo Foundation * Distributed under the terms of the GNU General Public License v2 - * $Header: /var/cvsroot/gentoo-projects/pax-utils/porting.h,v 1.28 2007/04/08 20:38:45 vapier Exp $ + * $Header: /var/cvsroot/gentoo-projects/pax-utils/porting.h,v 1.29 2007/04/08 20:42:43 vapier Exp $ * * Copyright 2005-2006 Ned Ludd - <solar@gentoo.org> * Copyright 2005-2006 Mike Frysinger - <vapier@gentoo.org> @@ -123,9 +123,6 @@ # if !defined(BIG_ENDIAN) && defined(_BIG_ENDIAN) # define BIG_ENDIAN _BIG_ENDIAN # endif -# if !defined(LITTLE_ENDIAN) || !defined(BIG_ENDIAN) -# error "i need LITTLE_ENDIAN/BIG_ENDIAN" -# endif # if defined(BYTE_ORDER) # define __PAX_UTILS_BO BYTE_ORDER # elif defined(__BYTE_ORDER) @@ -141,9 +138,9 @@ # else # error "no idea what the native byte order is" # endif -# if __PAX_UTILS_BO == LITTLE_ENDIAN +# if defined(LITTLE_ENDIAN) && __PAX_UTILS_BO == LITTLE_ENDIAN # define ELF_DATA ELFDATA2LSB -# elif __PAX_UTILS_BO == BIG_ENDIAN +# elif defined(BIG_ENDIAN) && __PAX_UTILS_BO == BIG_ENDIAN # define ELF_DATA ELFDATA2MSB # else # error "still cant calculate native byte order" |