mirror of https://git.tukaani.org/xz.git
Windows: Add MSVC defines for inline and restrict keywords.
This commit is contained in:
parent
a19d9e8575
commit
69fd4e1c93
|
@ -165,6 +165,16 @@ typedef unsigned char _Bool;
|
||||||
# include <memory.h>
|
# include <memory.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
// As of MSVC 2013, inline and restrict are supported with
|
||||||
|
// non-standard keywords.
|
||||||
|
#if defined(_WIN32) && defined(_MSC_VER)
|
||||||
|
# ifndef inline
|
||||||
|
# define inline __inline
|
||||||
|
# endif
|
||||||
|
# ifndef restrict
|
||||||
|
# define restrict __restrict
|
||||||
|
# endif
|
||||||
|
#endif
|
||||||
|
|
||||||
////////////
|
////////////
|
||||||
// Macros //
|
// Macros //
|
||||||
|
|
Loading…
Reference in New Issue