mirror of https://github.com/mpv-player/mpv
Windows port
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@10983 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
f7bbea2af8
commit
4ad705cdd8
|
@ -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__)
|
||||
|
|
Loading…
Reference in New Issue