Line 0
Link Here
|
|
|
1 |
--- serialized_buffer.h.orig 2008-11-05 08:54:15.000000000 +0800 |
2 |
+++ serialized_buffer.h 2009-03-15 01:53:39.000000000 +0800 |
3 |
@@ -19,13 +19,12 @@ |
4 |
|
5 |
#else // Linux byteswap defs |
6 |
|
7 |
-#include <byteswap.h> |
8 |
-#include <endian.h> |
9 |
+#include <sys/endian.h> |
10 |
|
11 |
#if __BYTE_ORDER == __LITTLE_ENDIAN |
12 |
- #define BE16(x) __bswap_16(x) |
13 |
- #define BE32(x) __bswap_32(x) |
14 |
- #define BE64(x) __bswap_64(x) |
15 |
+ #define BE16(x) __bswap16(x) |
16 |
+ #define BE32(x) __bswap32(x) |
17 |
+ #define BE64(x) __bswap64(x) |
18 |
#define LE16(x) (x) |
19 |
#define LE32(x) (x) |
20 |
#define LE64(x) (x) |
21 |
@@ -33,9 +32,9 @@ |
22 |
#define BE16(x) (x) |
23 |
#define BE32(x) (x) |
24 |
#define BE64(x) (x) |
25 |
- #define LE16(x) __bswap_16(x) |
26 |
- #define LE32(x) __bswap_32(x) |
27 |
- #define LE64(x) __bswap_64(x) |
28 |
+ #define LE16(x) __bswap16(x) |
29 |
+ #define LE32(x) __bswap32(x) |
30 |
+ #define LE64(x) __bswap64(x) |
31 |
#endif |
32 |
|
33 |
#endif |