summaryrefslogtreecommitdiff
path: root/multimedia
diff options
context:
space:
mode:
authorKevin Lo <kevlo@FreeBSD.org>2000-12-14 01:49:34 +0000
committerKevin Lo <kevlo@FreeBSD.org>2000-12-14 01:49:34 +0000
commitcc5ec17b7db33c9104e353d847053a6f4bce1294 (patch)
treeb3afed70525d6a60c13b6cd898abd7f5ef023ac6 /multimedia
parentMake the mode of created directories sane. (diff)
Add #define BE_SHORT(x)
Notes
Notes: svn path=/head/; revision=35965
Diffstat (limited to 'multimedia')
-rw-r--r--multimedia/kdemultimedia3/files/patch-kmidi_config_h8
-rw-r--r--multimedia/kdemultimedia4/files/patch-kmidi_config_h8
2 files changed, 8 insertions, 8 deletions
diff --git a/multimedia/kdemultimedia3/files/patch-kmidi_config_h b/multimedia/kdemultimedia3/files/patch-kmidi_config_h
index 9fe8a83dcde3..fc82b4c0d9a1 100644
--- a/multimedia/kdemultimedia3/files/patch-kmidi_config_h
+++ b/multimedia/kdemultimedia3/files/patch-kmidi_config_h
@@ -8,11 +8,11 @@
-#define BE_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)
++# define BE_SHORT(x) __byte_swap_word(x)
++# define BE_LONG(x) __byte_swap_long(x)
+# else
-+# define LE_SHORT(x) __uint8_swap_uint16(x)
-+# define LE_LONG(x) __uint8_swap_uint32(x)
++# 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)
diff --git a/multimedia/kdemultimedia4/files/patch-kmidi_config_h b/multimedia/kdemultimedia4/files/patch-kmidi_config_h
index 9fe8a83dcde3..fc82b4c0d9a1 100644
--- a/multimedia/kdemultimedia4/files/patch-kmidi_config_h
+++ b/multimedia/kdemultimedia4/files/patch-kmidi_config_h
@@ -8,11 +8,11 @@
-#define BE_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)
++# define BE_SHORT(x) __byte_swap_word(x)
++# define BE_LONG(x) __byte_swap_long(x)
+# else
-+# define LE_SHORT(x) __uint8_swap_uint16(x)
-+# define LE_LONG(x) __uint8_swap_uint32(x)
++# 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)