[xiph-commits] r3140 - liboggplay/trunk/src/liboggplay

laser13 at svn.annodex.net laser13 at svn.annodex.net
Thu Jun 28 19:29:35 PDT 2007


Author: laser13
Date: 2007-06-28 19:29:35 -0700 (Thu, 28 Jun 2007)
New Revision: 3140

Modified:
   liboggplay/trunk/src/liboggplay/oggplay_tcp_reader.c
Log:
Do not use error() in Win32.

Modified: liboggplay/trunk/src/liboggplay/oggplay_tcp_reader.c
===================================================================
--- liboggplay/trunk/src/liboggplay/oggplay_tcp_reader.c	2007-06-29 01:39:15 UTC (rev 3139)
+++ liboggplay/trunk/src/liboggplay/oggplay_tcp_reader.c	2007-06-29 02:29:35 UTC (rev 3140)
@@ -246,7 +246,9 @@
 
 }
 
+#ifndef WIN32
 #include <error.h>
+#endif
 
 OggPlayErrorCode
 oggplay_tcp_reader_initialise(OggPlayReader * opr, int block) {
@@ -468,7 +470,9 @@
 #endif
           RETURN_ON_TIMEOUT_OR_CONTINUE(time_ref);
         }
+#ifndef WIN32
         error(0, errno, "ERROR");
+#endif
         return E_OGGPLAY_SOCKET_ERROR;
       } else if (nbytes == 0) {
         /*



More information about the commits mailing list