summaryrefslogtreecommitdiffstats
path: root/multimedia
diff options
context:
space:
mode:
authorkevlo <kevlo@FreeBSD.org>2000-12-14 01:49:34 +0000
committerkevlo <kevlo@FreeBSD.org>2000-12-14 01:49:34 +0000
commitf8e08cb1cc0c19e86ecf9c0d43bbfb38f06837d6 (patch)
treeca558a9a1b638d2fc1248720679cf83f719defa8 /multimedia
parentf64bb8227f163a834ce7d0ae08bac131b59cd462 (diff)
downloadFreeBSD-ports-f8e08cb1cc0c19e86ecf9c0d43bbfb38f06837d6.zip
FreeBSD-ports-f8e08cb1cc0c19e86ecf9c0d43bbfb38f06837d6.tar.gz
Add #define BE_SHORT(x)
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 9fe8a83..fc82b4c 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 9fe8a83..fc82b4c 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)
OpenPOWER on IntegriCloud