This commit is contained in:
biosvos
2026-08-07 17:38:18 +09:00
commit 873193a243
9613 changed files with 2755992 additions and 0 deletions
@@ -0,0 +1,30 @@
/* (c) D.Souflis dsouflis@acm.org */
#include "libdefs.h"
#include "win32_comp.h"
#ifdef WIN32
WIN32DLL_DEFINE int main (void)
{
/* empty main function to avoid linker error (see cygwin FAQ) */
}
#endif
#ifdef WIN32_DLOPEN
void *dlopen(const char *module, int unused)
{
return (void *) LoadLibrary(module);
}
void *dlsym(void *mo, const char *proc)
{
return (void *) GetProcAddress((HMODULE) mo, proc);
}
void dlclose(void *mo)
{
(void) FreeLibrary((HMODULE) mo);
}
#endif