"Fossies" - the Fresh Open Source Software Archive

Member "libmcrypt-2.5.8/lib/win32_comp.c" (15 Jan 2003, 490 Bytes) of package /linux/privat/old/libmcrypt-2.5.8.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "win32_comp.c" see the Fossies "Dox" file reference documentation.

    1 /* (c) D.Souflis dsouflis@acm.org */
    2 
    3 #include "libdefs.h"
    4 #include "win32_comp.h"
    5 
    6 #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 #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