summaryrefslogtreecommitdiffstats
path: root/src/3rdparty/libtiff/libtiff/tif_config.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/3rdparty/libtiff/libtiff/tif_config.h')
-rw-r--r--src/3rdparty/libtiff/libtiff/tif_config.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/3rdparty/libtiff/libtiff/tif_config.h b/src/3rdparty/libtiff/libtiff/tif_config.h
index d60bd8e..64ab64b 100644
--- a/src/3rdparty/libtiff/libtiff/tif_config.h
+++ b/src/3rdparty/libtiff/libtiff/tif_config.h
@@ -412,9 +412,12 @@
/* Define to `__inline__' or `__inline' if that's what the C compiler
calls it, or to nothing if 'inline' is not supported under any name. */
+#if defined(Q_CC_MSVC)
#ifndef __cplusplus
-#undef inline
-#define inline
+# ifndef inline
+# define inline __inline
+# endif
+#endif
#endif
/* Define to `long int' if <sys/types.h> does not define. */