#endif
/* provide prototypes for these when building zlib without LFS */
-#if !defined(_WIN32) && \
- (!defined(_LARGEFILE64_SOURCE) || _LFS64_LARGEFILE-0 == 0)
+#if !defined(_WIN32) && (!defined(_LARGEFILE64_SOURCE) || _LFS64_LARGEFILE-0 == 0)
ZEXTERN uLong ZEXPORT adler32_combine64 (uLong, uLong, z_off_t);
ZEXTERN uLong ZEXPORT crc32_combine64 (uLong, uLong, z_off_t);
#endif
+/* MS Visual Studio does not allow inline in C, only C++.
+ But it provides __inline instead, so use that. */
+#if defined(_MSC_VER) && !defined(inline)
+# define inline __inline
+#endif
+
/* common defaults */
#ifndef OS_CODE