blob: 87a61ca4f3fff33232368a241e793e4e12b86a12 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
--- include/h2def.h.orig 2001-12-02 08:51:54 UTC
+++ include/h2def.h
@@ -26,7 +26,11 @@
/* XXX ifdefs */
+#ifndef __FreeBSD__
typedef unsigned int uint;
+#else
+#include <sys/types.h>
+#endif
// Uncomment, to enable all timebomb stuff
//#define TIMEBOMB
@@ -894,10 +898,8 @@ fixed_t FixedDiv2 (fixed_t a, fixed_t b);
#endif
#ifdef __BIG_ENDIAN__
-short ShortSwap(short);
-long LongSwap(long);
-#define SHORT(x) ShortSwap(x)
-#define LONG(x) LongSwap(x)
+#define SHORT(x) __builtin_bswap16(x)
+#define LONG(x) __builtin_bswap32(x)
#else
#define SHORT(x) (x)
#define LONG(x) (x)
|