(WORDS_BIGENDIAN): define based on result from KRB_C_BIGENDIAN
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@7770 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
14
acconfig.h
14
acconfig.h
@@ -80,3 +80,17 @@ static /**/const char *const rcsid[] = { (const char *)rcsid, "\100(#)" msg }
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#define _GNU_SOURCE
|
#define _GNU_SOURCE
|
||||||
|
|
||||||
|
/*
|
||||||
|
* this assumes that KRB_C_BIGENDIAN is used.
|
||||||
|
* if we can find out endianess at compile-time, do so,
|
||||||
|
* otherwise WORDS_BIGENDIAN should already have been defined
|
||||||
|
*/
|
||||||
|
|
||||||
|
#if ENDIANESS_IN_SYS_PARAM_H
|
||||||
|
# include <sys/types.h>
|
||||||
|
# include <sys/param.h>
|
||||||
|
# if BYTE_ORDER == BIG_ENDIAN
|
||||||
|
# define WORDS_BIGENDIAN 1
|
||||||
|
# endif
|
||||||
|
#endif
|
||||||
|
Reference in New Issue
Block a user