(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:
Assar Westerlund
2000-01-08 10:33:37 +00:00
parent 592127453a
commit 19ce99d835

View File

@@ -80,3 +80,17 @@ static /**/const char *const rcsid[] = { (const char *)rcsid, "\100(#)" msg }
*/
#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