BYTE_ORDER undefined in osssound.cxx ?
walt
wa1ter at myrealbox.com
Mon May 5 18:03:02 PDT 2003
walt wrote:
> Martin Blapp wrote:
>
>> Hi,
>>
>>
>>> The line in question is:
>>> #if BYTE_ORDER == LITTLE_ENDIAN
>>
>>
>>
>> Just fixed it. It should have been
>>
>> #if _BYTE_ORDER == _LITTLE_ENDIAN
>
>
> I can see that you made the change in soundcard.h and it
> appears correct -- unfortunately I still get exactly the
> same compilation error:
Well, my computer is little-endian (i386) so I tried this
'patch' which allowed compilation to finish normally:
=========================================
#diff -u soundcard.h soundcard.h.old
--- soundcard.h Mon May 5 17:55:09 2003
+++ soundcard.h.old Mon May 5 18:54:11 2003
@@ -163,11 +163,7 @@
#define AFMT_MPEG 0x00000200 /* MPEG MP2/MP3 audio */
#define AFMT_AC3 0x00000400 /* Dolby Digital AC3 */
-#if _BYTE_ORDER == _LITTLE_ENDIAN
#define AFMT_S16_NE AFMT_S16_LE /* native endian signed 16 */
-#else
-#define AFMT_S16_NE AFMT_S16_BE
-#endif
/*
* 32-bit formats below used for 24-bit audio data where the data is stored
==========================================
I just wish I could figure out why the 'if' statement doesn't
parse correctly :-(
More information about the freebsd-openoffice
mailing list