diff src/sunplay.c @ 2:ac2d302a0011 r19-15b2

Import from CVS: tag r19-15b2
author cvs
date Mon, 13 Aug 2007 08:46:35 +0200
parents 376386a54a3c
children 0293115a14e9
line wrap: on
line diff
--- a/src/sunplay.c	Mon Aug 13 08:45:53 2007 +0200
+++ b/src/sunplay.c	Mon Aug 13 08:46:35 2007 +0200
@@ -33,9 +33,20 @@
 #include <sys/fcntl.h>
 #include <sys/file.h>
 
+/* libaudio.h includes a header which defines CONST.  We temporarily
+   undefine it in order to eliminate a compiler warning.  Yes, this is
+   a hack. */
+#undef CONST
 #include <multimedia/libaudio.h>
 #include <multimedia/audio_device.h>
 
+#undef CONST
+#ifdef CONST_IS_LOSING
+# define CONST
+#else
+# define CONST const
+#endif /* CONST */
+
 #if __STDC__ || defined(STDC_HEADERS)	       /* warning suppression */
 extern int audio__setplayhdr();
 extern int audio__setgain();
@@ -45,7 +56,6 @@
 extern int audio_cmp_hdr();
 extern int audio_enc_to_str();
 extern int audio_drain();
-extern void usleep();
 #endif