summaryrefslogtreecommitdiff
path: root/stdafx.h
diff options
context:
space:
mode:
authorDarkvater <darkvater@openttd.org>2005-11-26 12:57:42 +0000
committerDarkvater <darkvater@openttd.org>2005-11-26 12:57:42 +0000
commit728aba9d7cf41f1aaba655b89da1fa687ecded10 (patch)
tree70ff31422b33d818ffb0291281d2327d83291d64 /stdafx.h
parenta090886073dc6167aad68700bed4681d775ca5f3 (diff)
downloadopenttd-728aba9d7cf41f1aaba655b89da1fa687ecded10.tar.xz
(svn r3236) - Fix: warnings about 'CDECL must be used with ...' on VS6
Diffstat (limited to 'stdafx.h')
-rw-r--r--stdafx.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/stdafx.h b/stdafx.h
index 74c44e46d..b42b3688f 100644
--- a/stdafx.h
+++ b/stdafx.h
@@ -142,6 +142,14 @@
# undef TTD_ALIGNMENT_4
# undef TTD_ALIGNMENT_2
# define GCC_PACK
+
+// This is needed to zlib uses the stdcall calling convention on visual studio, also used with libpng (VS6 warning)
+# if defined(WITH_ZLIB) || defined(WITH_PNG)
+# ifndef ZLIB_WINAPI
+# define ZLIB_WINAPI
+# endif
+# endif
+
#endif /* defined(_MSC_VER) */