From 4d828f7458427a4c4af4e77d57924c1a593e6739 Mon Sep 17 00:00:00 2001 From: Daniel Caujolle-Bert Date: Tue, 8 May 2001 11:31:39 +0000 Subject: Check for byteswap.h presence. Add workaround for AFMT_S16_NE definition. CVS patchset: 70 CVS date: 2001/05/08 11:31:39 --- src/audio_out/audio_oss_out.c | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/audio_out/audio_oss_out.c b/src/audio_out/audio_oss_out.c index d72667c3a..0bb47ffbb 100644 --- a/src/audio_out/audio_oss_out.c +++ b/src/audio_out/audio_oss_out.c @@ -17,7 +17,7 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA * - * $Id: audio_oss_out.c,v 1.5 2001/05/07 03:40:35 f1rmb Exp $ + * $Id: audio_oss_out.c,v 1.6 2001/05/08 11:31:39 f1rmb Exp $ */ #ifdef HAVE_CONFIG_H @@ -51,6 +51,15 @@ #include "metronom.h" #include "utils.h" +#ifndef AFMT_S16_NE +# if defined(sparc) || defined(__sparc__) || defined(PPC) +/* Big endian machines */ +# define AFMT_S16_NE AFMT_S16_BE +# else +# define AFMT_S16_NE AFMT_S16_LE +# endif +#endif + #define AO_OUT_OSS_IFACE_VERSION 1 #define AUDIO_NUM_FRAGMENTS 15 -- cgit v1.2.3