projects
/
strace
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0b578fd
)
defs.h: introduce is_bigendian macro
author
Eugene Syromyatnikov
<evgsyr@gmail.com>
Mon, 7 May 2018 05:13:54 +0000
(07:13 +0200)
committer
Dmitry V. Levin
<ldv@altlinux.org>
Mon, 21 May 2018 11:02:54 +0000
(11:02 +0000)
This macro is going to be used in inline checks.
* defs.h (is_bigendian): New macro constant.
defs.h
patch
|
blob
|
history
diff --git
a/defs.h
b/defs.h
index 92f5fa6eccdd354399ccd9f9832251346bbaa5f6..8b5b2d659bee40c1c8e16bf643c8a9854fc86ecf 100644
(file)
--- 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;