1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-19 19:59:43 +00:00

use __bswap{16,32} instead of __uint8_swap_uint{16,32} (because the

functions no longer exist), this is probably wrong, it should be
using htons or equivelant, but i'd like to have this unbroken for
now on recent 5.x systems.
This commit is contained in:
Alfred Perlstein 2002-04-29 07:53:39 +00:00
parent 676603aa24
commit c5de2a9149
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=58296
3 changed files with 39 additions and 0 deletions

View File

@ -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))

View File

@ -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))

View File

@ -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))