Date: Mon, 05 May 2003 19:03:05 -0700 From: walt <wa1ter@myrealbox.com> To: Martin Blapp <mb@imp.ch> Cc: freebsd-openoffice@freebsd.org Subject: Re: BYTE_ORDER undefined in osssound.cxx ? Message-ID: <3EB717D9.305@myrealbox.com> In-Reply-To: <3EB5EC97.7010301@myrealbox.com> References: <3EB3A907.2090907@myrealbox.com> <20030504075919.S33100@cvs.imp.ch> <3EB5EC97.7010301@myrealbox.com>
index | next in thread | previous in thread | raw e-mail
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 :-(help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3EB717D9.305>
