defs.h: introduce is_bigendian macro

This macro is going to be used in inline checks.

* defs.h (is_bigendian): New macro constant.
This commit is contained in:
Eugene Syromyatnikov 2018-05-07 07:13:54 +02:00 committed by Dmitry V. Levin
parent 0b578fd0ba
commit c6143f3e41

6
defs.h
View File

@ -166,6 +166,12 @@ extern char *stpcpy(char *dst, const char *src);
# define HAVE_PERSONALITY_2_MPERS 0
#endif
#ifdef WORDS_BIGENDIAN
# define is_bigendian true
#else
# define is_bigendian false
#endif
typedef struct ioctlent {
const char *symbol;
unsigned int code;