[xiph-cvs] cvs commit: ao/src ao_au.c
Chris Wolf
cwolf at xiph.org
Wed Sep 5 12:33:40 PDT 2001
cwolf 01/09/05 12:33:40
Modified: src ao_au.c
Log:
Don't include unistd.h with MSVC, fix a warning
Revision Changes Path
1.5 +5 -11 ao/src/ao_au.c
Index: ao_au.c
===================================================================
RCS file: /usr/local/cvsroot/ao/src/ao_au.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- ao_au.c 2001/08/31 23:17:55 1.4
+++ ao_au.c 2001/09/05 19:33:40 1.5
@@ -29,7 +29,9 @@
#include <sys/stat.h>
#include <fcntl.h>
#include <errno.h>
-#include <unistd.h>
+#ifndef _MSC_VER
+# include <unistd.h>
+#endif
#include <ao/ao.h>
#include <ao/plugin.h>
@@ -81,7 +83,7 @@
} ao_au_internal;
-static int ao_au_test()
+static int ao_au_test(void)
{
return 1; /* File driver always works */
}
@@ -221,13 +223,6 @@
free(internal);
}
-
-static char *ao_au_file_extension(void)
-{
- return "au";
-}
-
-
ao_functions ao_au = {
ao_au_test,
ao_au_driver_info,
@@ -236,6 +231,5 @@
ao_au_open,
ao_au_play,
ao_au_close,
- ao_au_device_clear,
- ao_au_file_extension
+ ao_au_device_clear
};
--- >8 ----
List archives: http://www.xiph.org/archives/
Ogg project homepage: http://www.xiph.org/ogg/
To unsubscribe from this list, send a message to 'cvs-request at xiph.org'
containing only the word 'unsubscribe' in the body. No subject is needed.
Unsubscribe messages sent to the list will be ignored/filtered.
More information about the commits
mailing list