summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDaniel Caujolle-Bert <f1rmb@users.sourceforge.net>2001-06-15 08:58:11 +0000
committerDaniel Caujolle-Bert <f1rmb@users.sourceforge.net>2001-06-15 08:58:11 +0000
commitcb7fbe425753f04a0e3ac33325274f288373816a (patch)
treedd6dc0334d69ed8055d2e8b8375d5c8bf4c77146 /src
parent72660c8c56d4a4f9fa3a37dc6fa569791fc3cbdf (diff)
downloadxine-lib-cb7fbe425753f04a0e3ac33325274f288373816a.tar.gz
xine-lib-cb7fbe425753f04a0e3ac33325274f288373816a.tar.bz2
Fixed some warns.
CVS patchset: 185 CVS date: 2001/06/15 08:58:11
Diffstat (limited to 'src')
-rw-r--r--src/audio_out/audio_oss_out.c9
-rw-r--r--src/libw32dll/w32codec.c5
2 files changed, 10 insertions, 4 deletions
diff --git a/src/audio_out/audio_oss_out.c b/src/audio_out/audio_oss_out.c
index 3cf006dfa..f796458b0 100644
--- a/src/audio_out/audio_oss_out.c
+++ b/src/audio_out/audio_oss_out.c
@@ -17,9 +17,14 @@
* 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.12 2001/06/14 09:19:44 guenter Exp $
+ * $Id: audio_oss_out.c,v 1.13 2001/06/15 08:58:11 f1rmb Exp $
*/
+/* required for swab() */
+#define _XOPEN_SOURCE 500
+/* required for FNDELAY decl */
+#define _BSD_SOURCE 1
+
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
@@ -27,10 +32,10 @@
#include <stdio.h>
#include <errno.h>
#include <string.h>
-#include <unistd.h>
#include <stdlib.h>
#include <fcntl.h>
#include <math.h>
+#include <unistd.h>
#if defined(__OpenBSD__)
#include <soundcard.h>
#elif defined(__FreeBSD__)
diff --git a/src/libw32dll/w32codec.c b/src/libw32dll/w32codec.c
index eeef5d915..4700799b8 100644
--- a/src/libw32dll/w32codec.c
+++ b/src/libw32dll/w32codec.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: w32codec.c,v 1.5 2001/06/10 00:20:19 guenter Exp $
+ * $Id: w32codec.c,v 1.6 2001/06/15 08:58:12 f1rmb Exp $
*
* routines for using w32 codecs
*
@@ -410,7 +410,8 @@ static int w32a_init_audio (w32a_decoder_t *this, WAVEFORMATEX *in_fmt_){
printf("Audio buffer min. size: %d\n",srcsize);
*/
- acmStreamSize(this->srcstream, 16384, &this->rec_audio_src_size, ACM_STREAMSIZEF_DESTINATION);
+ acmStreamSize(this->srcstream, 16384, (LPDWORD) &this->rec_audio_src_size,
+ ACM_STREAMSIZEF_DESTINATION);
/* printf("recommended source buffer size: %d\n", this->rec_audio_src_size); */
this->size = 0;