diff options
Diffstat (limited to 'src/interfaces/libpq/libpqdll.c')
-rw-r--r-- | src/interfaces/libpq/libpqdll.c | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/src/interfaces/libpq/libpqdll.c b/src/interfaces/libpq/libpqdll.c deleted file mode 100644 index 2fd6cfc7de5..00000000000 --- a/src/interfaces/libpq/libpqdll.c +++ /dev/null @@ -1,30 +0,0 @@ -#define WIN32_LEAN_AND_MEAN -#include <windows.h> -#include "win32.h" - - -BOOL WINAPI -DllMain(HINSTANCE hinstDLL, DWORD fdwReason, - LPVOID lpReserved) -{ - WSADATA wsaData; - - switch (fdwReason) - { - case DLL_PROCESS_ATTACH: - if (WSAStartup(MAKEWORD(1, 1), &wsaData)) - { - /* - * No really good way to do error handling here, since we - * don't know how we were loaded - */ - return FALSE; - } - break; - case DLL_PROCESS_DETACH: - WSACleanup(); - break; - } - - return TRUE; -} |