changeset 10982:285e298968de

Windows port
author faust3
date Thu, 02 Oct 2003 15:33:12 +0000
parents c312dafb528f
children 590355444f47
files vidix/vidixlib.c
diffstat 1 files changed, 14 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/vidix/vidixlib.c	Thu Oct 02 15:01:51 2003 +0000
+++ b/vidix/vidixlib.c	Thu Oct 02 15:33:12 2003 +0000
@@ -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__)