[Mplayer-cvslog] CVS: main/vidix vidixlib.c,1.11,1.12

Sascha Sommer CVS faust3 at mplayerhq.hu
Thu Oct 2 17:33:44 CEST 2003


Update of /cvsroot/mplayer/main/vidix
In directory mail:/var/tmp.root/cvs-serv1008/vidix

Modified Files:
	vidixlib.c 
Log Message:
Windows port

Index: vidixlib.c
===================================================================
RCS file: /cvsroot/mplayer/main/vidix/vidixlib.c,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -r1.11 -r1.12
--- vidixlib.c	20 May 2002 00:04:47 -0000	1.11
+++ vidixlib.c	2 Oct 2003 15:33:12 -0000	1.12
@@ -21,7 +21,21 @@
 #include <errno.h>
 #include <string.h>
 
+#ifndef WIN32
 #include <dlfcn.h> /* GLIBC specific. Exists under cygwin too! */
+#else
+#include <windows.h>
+#define dlsym(h,s) GetProcAddress(h,s)
+#define dlopen(h,s) LoadLibrary(h)
+#define dlclose(h) FreeLibrary(h)
+static char* dlerror(){
+ char errormsg[10];
+ sprintf(errormsg,"%i\n",GetLastError());
+ return errormsg;
+}
+#endif
+
+
 #include <dirent.h>
 
 #if defined(__OpenBSD__) && !defined(__ELF__)



More information about the MPlayer-cvslog mailing list