Parent Directory | Revision Log
Panama is not included by default. Several win32 fixes.
1 | nmav | 1.1 | /* (c) D.Souflis dsouflis@acm.org */ |
2 | |||
3 | #include "libdefs.h" | ||
4 | #include "win32_comp.h" | ||
5 | |||
6 | nmav | 1.2 | #ifdef WIN32 |
7 | WIN32DLL_DEFINE int main (void) | ||
8 | { | ||
9 | /* empty main function to avoid linker error (see cygwin FAQ) */ | ||
10 | } | ||
11 | #endif | ||
12 | |||
13 | nmav | 1.1 | #ifdef WIN32_DLOPEN |
14 | |||
15 | void *dlopen(const char *module, int unused) | ||
16 | { | ||
17 | return (void *) LoadLibrary(module); | ||
18 | } | ||
19 | |||
20 | void *dlsym(void *mo, const char *proc) | ||
21 | { | ||
22 | return (void *) GetProcAddress((HMODULE) mo, proc); | ||
23 | } | ||
24 | |||
25 | void dlclose(void *mo) | ||
26 | { | ||
27 | (void) FreeLibrary((HMODULE) mo); | ||
28 | } | ||
29 | |||
30 | #endif |
webmaster@linux.gr | ViewVC Help |
Powered by ViewVC 1.1.26 |