Browse Source

fix build warnings

cxgeorge 25 years ago
parent
commit
e7a057adb6
4 changed files with 9 additions and 5 deletions
  1. 2 0
      panda/src/mpg123/audio.c
  2. 1 0
      panda/src/mpg123/common.c
  3. 1 1
      panda/src/mpg123/readers.c
  4. 5 4
      panda/src/mpg123/xfermem.c

+ 2 - 0
panda/src/mpg123/audio.c

@@ -1,5 +1,7 @@
 
 #include "mpg123.h"
+#include <io.h>
+#include <stdlib.h>
 
 void audio_info_struct_init(struct audio_info_struct *ai)
 {

+ 1 - 0
panda/src/mpg123/common.c

@@ -11,6 +11,7 @@
 #endif /* WIN32 */
 
 #include <fcntl.h>
+#include <io.h>
 
 #ifdef READ_MMAP
 #include <sys/mman.h>

+ 1 - 1
panda/src/mpg123/readers.c

@@ -3,7 +3,7 @@
 #include <sys/types.h>
 #include <sys/stat.h>
 #include <fcntl.h>
-
+#include <io.h>
 #include "mpg123.h"
 #include "mpgbuffer.h"
 #include "common.h"

+ 5 - 4
panda/src/mpg123/xfermem.c

@@ -20,6 +20,7 @@
 #include <sys/mman.h>
 #include <sys/socket.h>
 #include <fcntl.h>
+#include <io.h>
 
 #ifdef AIX
 #include <sys/select.h>
@@ -244,19 +245,19 @@ extern int errno;
 
 void xfermem_init (txfermem **xf, int bufsize, int msize, int skipbuf)
 {
-  return 0;
+  return;
 }
 void xfermem_done (txfermem *xf)
 {
-  return 0;
+  return;
 }
 void xfermem_init_writer (txfermem *xf)
 {
-  return 0;
+  return;
 }
 void xfermem_init_reader (txfermem *xf)
 {
-  return 0;
+  return;
 }
 int xfermem_get_freespace (txfermem *xf)
 {