mirror of
https://git.tukaani.org/xz.git
synced 2025-02-23 08:58:31 +00:00
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>
|
||||
#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 //
|
||||
|
Loading…
x
Reference in New Issue
Block a user