[MPlayer-cvslog] r27790 - trunk/stream/cache2.c

diego subversion at mplayerhq.hu
Thu Oct 16 21:24:21 CEST 2008


Author: diego
Date: Thu Oct 16 21:24:21 2008
New Revision: 27790

Log:
Revert declaring ThreadProc as void, it breaks the WINAPI.


Modified:
   trunk/stream/cache2.c

Modified: trunk/stream/cache2.c
==============================================================================
--- trunk/stream/cache2.c	(original)
+++ trunk/stream/cache2.c	Thu Oct 16 21:24:21 2008
@@ -20,9 +20,11 @@
 #include "osdep/timer.h"
 #if defined(__MINGW32__) || defined(__CYGWIN__)
 #include <windows.h>
+static DWORD WINAPI ThreadProc(void* s);
 #elif defined(__OS2__)
 #define INCL_DOS
 #include <os2.h>
+static void ThreadProc( void *s );
 #else
 #include <sys/wait.h>
 #endif
@@ -35,7 +37,6 @@ extern int use_gui;
 
 int stream_fill_buffer(stream_t *s);
 int stream_seek_long(stream_t *s,off_t pos);
-static void ThreadProc(void *s);
 
 typedef struct {
   // constats:
@@ -361,9 +362,12 @@ int stream_enable_cache(stream_t *stream
   
 #if defined(__MINGW32__) || defined(__CYGWIN__) || defined(__OS2__)
 }
-
+#if defined(__MINGW32__) || defined(__CYGWIN__)
+static DWORD WINAPI ThreadProc(void*s){
+#else   // OS2
 static void ThreadProc( void *s ){
 #endif
+#endif
   
 #ifdef CONFIG_GUI
   use_gui = 0; // mp_msg may not use gui stuff in forked code



More information about the MPlayer-cvslog mailing list