[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r36234 - libmicrohttpd/src/microhttpd
From: |
gnunet |
Subject: |
[GNUnet-SVN] r36234 - libmicrohttpd/src/microhttpd |
Date: |
Sun, 9 Aug 2015 02:18:33 +0200 |
Author: Karlson2k
Date: 2015-08-09 02:18:33 +0200 (Sun, 09 Aug 2015)
New Revision: 36234
Modified:
libmicrohttpd/src/microhttpd/MHD_byteorder.h
Log:
Additional byte order detection in MHD_byteorder.h and some cosmetics
Modified: libmicrohttpd/src/microhttpd/MHD_byteorder.h
===================================================================
--- libmicrohttpd/src/microhttpd/MHD_byteorder.h 2015-08-08 12:30:14 UTC
(rev 36233)
+++ libmicrohttpd/src/microhttpd/MHD_byteorder.h 2015-08-09 00:18:33 UTC
(rev 36234)
@@ -64,11 +64,19 @@
#include <sys/isa_defs.h>
#endif
-#define _MHD_BIG_ENDIAN 4321
-#define _MHD_LITTLE_ENDIAN 1234
-#define _MHD_PDP_ENDIAN 2134
+#define _MHD_BIG_ENDIAN 1234
+#define _MHD_LITTLE_ENDIAN 4321
+#define _MHD_PDP_ENDIAN 2143
-#if defined(__BYTE_ORDER)
+#if defined(__BYTE_ORDER__)
+#if defined(__ORDER_BIG_ENDIAN__) && __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__
+#define _MHD_BYTE_ORDER _MHD_BIG_ENDIAN
+#elif defined(__ORDER_LITTLE_ENDIAN__) && __BYTE_ORDER__ ==
__ORDER_LITTLE_ENDIAN__
+#define _MHD_BYTE_ORDER _MHD_LITTLE_ENDIAN
+#elif defined(__ORDER_PDP_ENDIAN__) && __BYTE_ORDER__ == __ORDER_PDP_ENDIAN__
+#define _MHD_BYTE_ORDER _MHD_PDP_ENDIAN
+#endif /* __BYTE_ORDER__ == __ORDER_PDP_ENDIAN__ */
+#elif defined(__BYTE_ORDER)
#if defined(__BIG_ENDIAN) && __BYTE_ORDER == __BIG_ENDIAN
#define _MHD_BYTE_ORDER _MHD_BIG_ENDIAN
#elif defined(__LITTLE_ENDIAN) && __BYTE_ORDER == __LITTLE_ENDIAN
@@ -91,7 +99,7 @@
#define _MHD_BYTE_ORDER _MHD_LITTLE_ENDIAN
#elif defined(_PDP_ENDIAN) && _BYTE_ORDER == _PDP_ENDIAN
#define _MHD_BYTE_ORDER _MHD_PDP_ENDIAN
-#endif /* __BYTE_ORDER == _PDP_ENDIAN */
+#endif /* _BYTE_ORDER == _PDP_ENDIAN */
#endif /* _BYTE_ORDER */
#ifndef _MHD_BYTE_ORDER
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r36234 - libmicrohttpd/src/microhttpd,
gnunet <=