diff options
Diffstat (limited to 'extract/include/extract_compat_inline.h')
-rw-r--r-- | extract/include/extract_compat_inline.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/extract/include/extract_compat_inline.h b/extract/include/extract_compat_inline.h new file mode 100644 index 00000000..bb82ead2 --- /dev/null +++ b/extract/include/extract_compat_inline.h @@ -0,0 +1,15 @@ +#ifndef ARTIFEX_EXTRACT_COMPAT_INLINE +#define ARTIFEX_EXTRACT_COMPAT_INLINE + +#if !defined __cplusplus && defined(_MSC_VER) + #if (_MSC_VER < 1500) + /* inline and inline__ not available so remove all mention of + inline. This may result in warnings about unused static functions. */ + #define inline + #else + /* __inline is always available. */ + #define inline __inline + #endif +#endif + +#endif |