mirror of https://github.com/postgres/postgres
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
438 B
28 lines
438 B
|
23 years ago
|
/* $Header: /cvsroot/pgsql/src/backend/port/dynloader/win32.c,v 1.1 2003/05/15 16:35:29 momjian Exp $ */
|
||
|
23 years ago
|
|
||
|
|
#include <windows.h>
|
||
|
|
|
||
|
|
char *
|
||
|
|
dlerror(void)
|
||
|
|
{
|
||
|
|
return "error";
|
||
|
|
}
|
||
|
|
|
||
|
|
int
|
||
|
|
dlclose(void *handle)
|
||
|
|
{
|
||
|
|
return FreeLibrary((HMODULE)handle) ? 0 : 1;
|
||
|
|
}
|
||
|
|
|
||
|
|
void *
|
||
|
|
dlsym(void *handle, const char *symbol)
|
||
|
|
{
|
||
|
|
return (void *)GetProcAddress((HMODULE)handle, symbol);
|
||
|
|
}
|
||
|
|
|
||
|
|
void *
|
||
|
|
dlopen(const char *path, int mode)
|
||
|
|
{
|
||
|
|
return (void *)LoadLibrary(path);
|
||
|
|
}
|