From: Eugene Syromyatnikov Date: Mon, 7 May 2018 05:13:54 +0000 (+0200) Subject: defs.h: introduce is_bigendian macro X-Git-Tag: v4.23~140 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c6143f3e41ac60b2b2bfd4a4defc97ff141d3266;p=strace defs.h: introduce is_bigendian macro This macro is going to be used in inline checks. * defs.h (is_bigendian): New macro constant. --- diff --git a/defs.h b/defs.h index 92f5fa6e..8b5b2d65 100644 --- a/defs.h +++ b/defs.h @@ -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;