Windows port

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@10983 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
faust3 2003-10-02 15:33:12 +00:00
parent f7bbea2af8
commit 4ad705cdd8
1 changed files with 14 additions and 0 deletions

View File

@ -21,7 +21,21 @@
#include <errno.h> #include <errno.h>
#include <string.h> #include <string.h>
#ifndef WIN32
#include <dlfcn.h> /* GLIBC specific. Exists under cygwin too! */ #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> #include <dirent.h>
#if defined(__OpenBSD__) && !defined(__ELF__) #if defined(__OpenBSD__) && !defined(__ELF__)