/[mcrypt]/libmcrypt/lib/win32_comp.c
ViewVC logotype

Annotation of /libmcrypt/lib/win32_comp.c

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (hide annotations)
Sun Jan 19 17:48:27 2003 UTC (21 years, 3 months ago) by nmav
Branch: MAIN
CVS Tags: libmcrypt_2_5_7, libmcrypt_2_5_6, HEAD
Changes since 1.1: +7 -0 lines
File MIME type: text/plain
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