From 9b3e5d11f6dc8997e8b8ca5faa310bc20a23a8d4 Mon Sep 17 00:00:00 2001
From: Monster Iestyn <iestynjealous@ntlworld.com>
Date: Mon, 19 Jun 2017 17:39:29 +0100
Subject: [PATCH] Use just hwSym for Win32+SDL builds without PNG_STATIC, not
 both hwSym and GetProcAddress!

apparently SDL_LoadFunction is just a GetProcAddress call anyway for Windows
---
 src/m_misc.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/src/m_misc.c b/src/m_misc.c
index c63233e362..f3136ce66d 100644
--- a/src/m_misc.c
+++ b/src/m_misc.c
@@ -853,8 +853,7 @@ static inline boolean M_PNGLib(void)
 	apng_set_acTL = hwSym("png_set_acTL", pnglib);
 	apng_write_frame_head = hwSym("png_write_frame_head", pnglib);
 	apng_write_frame_tail = hwSym("png_write_frame_tail", pnglib);
-#endif
-#ifdef _WIN32
+#elif defined (_WIN32)
 	apng_set_acTL = GetProcAddress("png_set_acTL", pnglib);
 	apng_write_frame_head = GetProcAddress("png_write_frame_head", pnglib);
 	apng_write_frame_tail = GetProcAddress("png_write_frame_tail", pnglib);
-- 
GitLab