projects
/
proxmark3-svn
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Minor refactoring
[proxmark3-svn]
/
client
/
proxendian.h
diff --git
a/client/proxendian.h
b/client/proxendian.h
index 4a386a0ddd244cd47d200b360348928a8cbc85ad..866ea250714719da8485e34a95f9c50c2732a0d0 100644
(file)
--- a/
client/proxendian.h
+++ b/
client/proxendian.h
@@
-13,15
+13,18
@@
#include <stdint.h>
#include <stdint.h>
-#ifdef WIN32
+#ifdef
_
WIN32
# define HOST_LITTLE_ENDIAN
#else
# include <sys/types.h>
# define HOST_LITTLE_ENDIAN
#else
# include <sys/types.h>
-
+# ifndef BYTE_ORDER
+# define BYTE_ORDER __BYTE_ORDER
+# define LITTLE_ENDIAN __LITTLE_ENDIAN
+# define BIG_ENDIAN __BIG_ENDIAN
+# endif
# if !defined(BYTE_ORDER) || (BYTE_ORDER != LITTLE_ENDIAN && BYTE_ORDER != BIG_ENDIAN)
# error Define BYTE_ORDER to be equal to either LITTLE_ENDIAN or BIG_ENDIAN
# endif
# if !defined(BYTE_ORDER) || (BYTE_ORDER != LITTLE_ENDIAN && BYTE_ORDER != BIG_ENDIAN)
# error Define BYTE_ORDER to be equal to either LITTLE_ENDIAN or BIG_ENDIAN
# endif
-
# if BYTE_ORDER == LITTLE_ENDIAN
# define HOST_LITTLE_ENDIAN
# endif
# if BYTE_ORDER == LITTLE_ENDIAN
# define HOST_LITTLE_ENDIAN
# endif
Impressum
,
Datenschutz