diff options
author | Joerg Wunsch <joerg@FreeBSD.org> | 2001-12-04 22:50:06 +0000 |
---|---|---|
committer | Joerg Wunsch <joerg@FreeBSD.org> | 2001-12-04 22:50:06 +0000 |
commit | f8870c3e6ea7a6b882369563bbb655a0815aee32 (patch) | |
tree | 071b2bba49616117c953b582d5976a31cd7bad97 /audio/timidity/files/patch-af | |
parent | Ensure that the directory is created before installing files into it. (diff) |
Make it work under FreeBSD-current.
There no longer seems to be a __byte_swap_word().
stdin/stdout are no longer static objects, thus can't be used in
global initializers anymore (foo!). :-(
Notes
Notes:
svn path=/head/; revision=51037
Diffstat (limited to 'audio/timidity/files/patch-af')
-rw-r--r-- | audio/timidity/files/patch-af | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/audio/timidity/files/patch-af b/audio/timidity/files/patch-af index c1610885e266..dad932efd2fc 100644 --- a/audio/timidity/files/patch-af +++ b/audio/timidity/files/patch-af @@ -25,29 +25,3 @@ /* Win32 on Intel machines */ #ifdef __WIN32__ # define LITTLE_ENDIAN -*************** -*** 254,266 **** ---- 270,292 ---- - #ifdef LITTLE_ENDIAN - #define LE_SHORT(x) x - #define LE_LONG(x) x -+ #if defined(__FreeBSD__) && !defined(__alpha__) -+ #define BE_SHORT(x) __byte_swap_word(x) -+ #define BE_LONG(x) __byte_swap_long(x) -+ #else - #define BE_SHORT(x) XCHG_SHORT(x) - #define BE_LONG(x) XCHG_LONG(x) -+ #endif - #else - #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) -+ #else - #define LE_SHORT(x) XCHG_SHORT(x) - #define LE_LONG(x) XCHG_LONG(x) -+ #endif - #endif - - #define MAX_AMPLIFICATION 800 |