blob: 665455d6c0e6388d009a22510ec857155eceea5f [file] [log] [blame]
From 2cd8bf6da61c853789f01af475fe755e3160622f Mon Sep 17 00:00:00 2001
From: Alexey Pavlov <alexpux@gmail.com>
Date: Thu, 2 Feb 2017 09:53:24 +0300
Subject: [PATCH 4/6] Fix export in ILUT
---
DevIL/src-ILUT/src/ilut_win32.cpp | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/DevIL/src-ILUT/src/ilut_win32.cpp b/DevIL/src-ILUT/src/ilut_win32.cpp
index 69ace517..110de391 100644
--- a/DevIL/src-ILUT/src/ilut_win32.cpp
+++ b/DevIL/src-ILUT/src/ilut_win32.cpp
@@ -761,10 +761,10 @@ ILboolean ILAPIENTRY ilutLoadResource(HINSTANCE hInst, ILint ID, ILstring Resour
}
-#if !defined(_WIN32_WCE) && !(defined(_WIN32) && defined(__GNUC__))
-#define BUFFSIZE 8192 // Change to suit the efficiency.
ILboolean ILAPIENTRY ilutWinLoadUrl(ILstring Url)
{
+#if !defined(_WIN32_WCE) && !(defined(_WIN32) && defined(__GNUC__))
+#define BUFFSIZE 8192 // Change to suit the efficiency.
HINTERNET Handle, UrlHandle;
DWORD BytesRead = 0, Context = 1;
ILubyte Buff[BUFFSIZE], *Buffer, *TempBuff;
@@ -847,10 +847,10 @@ ILboolean ILAPIENTRY ilutWinLoadUrl(ILstring Url)
}
ifree(Buffer);
+#endif
return IL_TRUE;
}
-#endif
#endif//ILUT_USE_WIN32
--
2.11.0