blob: dfa8da5d98601ba4d223c33587155d7d8a84d20a (
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
28
29
30
31
32
33
34
35
36
37
38
39
40
|
This patch-ac should be replaced with this patch:
--- timidity/timidity.h.orig Fri Dec 22 17:55:40 2000
+++ timidity/timidity.h Fri Dec 22 17:57:41 2000
@@ -447,8 +447,14 @@
#define LE_SHORT(x) (x)
#define LE_LONG(x) (x)
#ifdef __FreeBSD__
-#define BE_SHORT(x) __byte_swap_word(x)
-#define BE_LONG(x) __byte_swap_long(x)
+# include <osreldate.h>
+# if __FreeBSD_version <= 500000
+# define BE_SHORT(x) __byte_swap_word(x)
+# define BE_LONG(x) __byte_swap_long(x)
+# else
+# define BE_SHORT(x) __uint8_swap_uint16(x)
+# define BE_LONG(x) __uint8_swap_uint32(x)
+# endif
#else
#define BE_SHORT(x) XCHG_SHORT(x)
#define BE_LONG(x) XCHG_LONG(x)
@@ -457,8 +463,14 @@
#define BE_SHORT(x) (x)
#define BE_LONG(x) (x)
#ifdef __FreeBSD__
-#define LE_SHORT(x) __byte_swap_word(x)
-#define LE_LONG(x) __byte_swap_long(x)
+# include <osreldate.h>
+# if __FreeBSD_version <= 500000
+# define LE_SHORT(x) __byte_swap_word(x)
+# define LE_LONG(x) __byte_swap_long(x)
+# else
+# define LE_SHORT(x) __uint8_swap_uint16(x)
+# define LE_LONG(x) __uint8_swap_uint32(x)
+# endif
#else
#define LE_SHORT(x) XCHG_SHORT(x)
#define LE_LONG(x) XCHG_LONG(x)
|