summaryrefslogtreecommitdiff
path: root/emulators/qemu-devel/files/patch-audio-4
blob: bb71885a2992df2dcb9881a4ea1166f074a74fa6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
Index: qemu/audio/audio_template.h
@@ -32,6 +32,10 @@
 #define SW glue (SWVoice, In)
 #endif
 
+#ifndef UINT64_MAX		
+#define UINT64_MAX		((uint64_t)(18446744073709551615ULL))
+#endif
+
 static void glue (audio_pcm_sw_fini_, TYPE) (SW *sw)
 {
     glue (audio_pcm_sw_free_resources_, TYPE) (sw);
Index: qemu/audio/audio.c
@@ -36,6 +36,10 @@
 /* #define DEBUG_LIVE */
 /* #define DEBUG_OUT */
 
+#ifndef INT16_MAX		
+#define INT16_MAX		(32767)
+#endif
+
 static struct audio_driver *drvtab[] = {
 #ifdef CONFIG_OSS
     &oss_audio_driver,