aboutsummaryrefslogtreecommitdiffstats
path: root/devel/clanlib/files/patch-Sources::Sound::Sound::ClanSound::oss.cpp
blob: 37d92875dce9d62e17d1abb582299f2735d6da44 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
--- Sources/Sound/Sound/ClanSound/oss.cpp.orig  Thu Jan 22 13:09:00 2004
+++ Sources/Sound/Sound/ClanSound/oss.cpp   Thu Jan 22 13:10:07 2004
@@ -28,6 +28,14 @@
 #include "API/Core/System/system.h"
 #include <Sound/Sound/ClanSound/oss.h>
 
+#ifndef AFMT_S16_NE
+#if defined(BYTE_ORDER) && (BYTE_ORDER == BIG_ENDIAN)
+#define AFMT_S16_NE AFMT_S16_BE
+#else
+#define AFMT_S16_NE AFMT_S16_LE
+#endif
+#endif
+
 // If USE_DRIVER_FRAGSIZE is defined, we use the fragsize (and number of them)
 // used by the soundcard driver. This is not as efficient as using our own
 // settings - mainly provided for debugging.