# HG changeset patch # User faust3 # Date 1065108792 0 # Node ID 285e298968de84200f852e026f10f5f8a9b618ac # Parent c312dafb528fd31649795e7335f99e4dd530be2b Windows port diff -r c312dafb528f -r 285e298968de vidix/vidixlib.c --- 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 #include +#ifndef WIN32 #include /* GLIBC specific. Exists under cygwin too! */ +#else +#include +#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 #if defined(__OpenBSD__) && !defined(__ELF__)