aboutsummaryrefslogtreecommitdiffstats
path: root/include/dynload.h
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--include/dynload.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/dynload.h b/include/dynload.h
index c8aadb49c..36dbb8ce9 100644
--- a/include/dynload.h
+++ b/include/dynload.h
@@ -21,7 +21,7 @@
#ifndef GNUPG_DYNLOAD_H
#define GNUPG_DYNLOAD_H
#ifdef ENABLE_CARD_SUPPORT
-#ifndef __MINGW32__
+#ifndef _WIN32
#include <dlfcn.h>
#else
#include <windows.h>
@@ -36,7 +36,7 @@ dlopen (const char * name, int flag)
}
static __inline__ void *
-dlsym (void *hd, const char *sym)
+dlsym (void * hd, const char * sym)
{
if (hd && sym)
{
@@ -53,7 +53,7 @@ static __inline__ const char *
dlerror (void)
{
static char buf[32];
- sprintf (buf, "ec=%lu", GetLastError ());
+ sprintf (buf, "ec=%lu\n", GetLastError ());
return buf;
}
@@ -63,7 +63,7 @@ dlclose (void * hd)
{
if (hd)
{
- CloseHandle (hd);
+ FreeLibrary (hd);
return 0;
}
return -1;