summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--audio/kdemultimedia3/files/patch-kmidi-config.h13
-rw-r--r--multimedia/kdemultimedia3/files/patch-kmidi-config.h13
-rw-r--r--multimedia/kdemultimedia4/files/patch-kmidi-config.h13
3 files changed, 39 insertions, 0 deletions
diff --git a/audio/kdemultimedia3/files/patch-kmidi-config.h b/audio/kdemultimedia3/files/patch-kmidi-config.h
new file mode 100644
index 0000000..43afe77
--- /dev/null
+++ b/audio/kdemultimedia3/files/patch-kmidi-config.h
@@ -0,0 +1,13 @@
+--- ./kmidi/config.h.old Sun Apr 28 23:33:03 2002
++++ ./kmidi/config.h Sun Apr 28 23:33:55 2002
+@@ -264,8 +264,8 @@
+ #define XCHG_SHORT(x) __byte_swap_word(x)
+ #define XCHG_LONG(x) __byte_swap_long(x)
+ #else
+- #define XCHG_SHORT(x) __uint8_swap_uint16(x)
+- #define XCHG_LONG(x) __uint8_swap_uint32(x)
++ #define XCHG_SHORT(x) __bswap16(x)
++ #define XCHG_LONG(x) __bswap32(x)
+ #endif
+ #else
+ #define XCHG_SHORT(x) ((((x)&0xFF)<<8) | (((x)>>8)&0xFF))
diff --git a/multimedia/kdemultimedia3/files/patch-kmidi-config.h b/multimedia/kdemultimedia3/files/patch-kmidi-config.h
new file mode 100644
index 0000000..43afe77
--- /dev/null
+++ b/multimedia/kdemultimedia3/files/patch-kmidi-config.h
@@ -0,0 +1,13 @@
+--- ./kmidi/config.h.old Sun Apr 28 23:33:03 2002
++++ ./kmidi/config.h Sun Apr 28 23:33:55 2002
+@@ -264,8 +264,8 @@
+ #define XCHG_SHORT(x) __byte_swap_word(x)
+ #define XCHG_LONG(x) __byte_swap_long(x)
+ #else
+- #define XCHG_SHORT(x) __uint8_swap_uint16(x)
+- #define XCHG_LONG(x) __uint8_swap_uint32(x)
++ #define XCHG_SHORT(x) __bswap16(x)
++ #define XCHG_LONG(x) __bswap32(x)
+ #endif
+ #else
+ #define XCHG_SHORT(x) ((((x)&0xFF)<<8) | (((x)>>8)&0xFF))
diff --git a/multimedia/kdemultimedia4/files/patch-kmidi-config.h b/multimedia/kdemultimedia4/files/patch-kmidi-config.h
new file mode 100644
index 0000000..43afe77
--- /dev/null
+++ b/multimedia/kdemultimedia4/files/patch-kmidi-config.h
@@ -0,0 +1,13 @@
+--- ./kmidi/config.h.old Sun Apr 28 23:33:03 2002
++++ ./kmidi/config.h Sun Apr 28 23:33:55 2002
+@@ -264,8 +264,8 @@
+ #define XCHG_SHORT(x) __byte_swap_word(x)
+ #define XCHG_LONG(x) __byte_swap_long(x)
+ #else
+- #define XCHG_SHORT(x) __uint8_swap_uint16(x)
+- #define XCHG_LONG(x) __uint8_swap_uint32(x)
++ #define XCHG_SHORT(x) __bswap16(x)
++ #define XCHG_LONG(x) __bswap32(x)
+ #endif
+ #else
+ #define XCHG_SHORT(x) ((((x)&0xFF)<<8) | (((x)>>8)&0xFF))
OpenPOWER on IntegriCloud