Mercurial > mplayer.hg
comparison vidix/vidixlib.c @ 10982:285e298968de
Windows port
author | faust3 |
---|---|
date | Thu, 02 Oct 2003 15:33:12 +0000 |
parents | e9a309486f18 |
children | 9a495bdc3a1e |
comparison
equal
deleted
inserted
replaced
10981:c312dafb528f | 10982:285e298968de |
---|---|
19 #include <stdlib.h> | 19 #include <stdlib.h> |
20 #include <stdio.h> | 20 #include <stdio.h> |
21 #include <errno.h> | 21 #include <errno.h> |
22 #include <string.h> | 22 #include <string.h> |
23 | 23 |
24 #ifndef WIN32 | |
24 #include <dlfcn.h> /* GLIBC specific. Exists under cygwin too! */ | 25 #include <dlfcn.h> /* GLIBC specific. Exists under cygwin too! */ |
26 #else | |
27 #include <windows.h> | |
28 #define dlsym(h,s) GetProcAddress(h,s) | |
29 #define dlopen(h,s) LoadLibrary(h) | |
30 #define dlclose(h) FreeLibrary(h) | |
31 static char* dlerror(){ | |
32 char errormsg[10]; | |
33 sprintf(errormsg,"%i\n",GetLastError()); | |
34 return errormsg; | |
35 } | |
36 #endif | |
37 | |
38 | |
25 #include <dirent.h> | 39 #include <dirent.h> |
26 | 40 |
27 #if defined(__OpenBSD__) && !defined(__ELF__) | 41 #if defined(__OpenBSD__) && !defined(__ELF__) |
28 #define dlsym(h,s) dlsym(h, "_" s) | 42 #define dlsym(h,s) dlsym(h, "_" s) |
29 #endif | 43 #endif |