aboutsummaryrefslogtreecommitdiff
path: root/src/port/win32env.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/port/win32env.c')
-rw-r--r--src/port/win32env.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/port/win32env.c b/src/port/win32env.c
index 2021f3d5aa6..177488cc67e 100644
--- a/src/port/win32env.c
+++ b/src/port/win32env.c
@@ -95,7 +95,7 @@ pgwin32_putenv(const char *envval)
{
PUTENVPROC putenvFunc;
- putenvFunc = (PUTENVPROC) GetProcAddress(hmodule, "_putenv");
+ putenvFunc = (PUTENVPROC) (pg_funcptr_t) GetProcAddress(hmodule, "_putenv");
if (putenvFunc)
putenvFunc(envval);
FreeLibrary(hmodule);