]> git.ipfire.org Git - thirdparty/zlib-ng.git/commitdiff
Fixed compiler warning about inline already being defined when including zutil.h...
authorNathan Moinvaziri <nathan@nathanm.com>
Sat, 23 May 2020 03:19:02 +0000 (20:19 -0700)
committerHans Kristian Rosbach <hk-github@circlestorm.org>
Sun, 24 May 2020 12:43:50 +0000 (14:43 +0200)
zutil.h

diff --git a/zutil.h b/zutil.h
index 9da665273fca66b6c7d847023423c0a520be60fc..457b47ca2ed2a6703d3d4017e6d58eba274cc99d 100644 (file)
--- a/zutil.h
+++ b/zutil.h
@@ -121,7 +121,7 @@ extern const char * const zng_errmsg[10]; /* indexed by 2-zlib_error */
 
 /* 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)
+#if defined(_MSC_VER) && !defined(inline) && !defined(__cplusplus) 
 #  define inline __inline
 #endif