mirror of
https://git.tukaani.org/xz.git
synced 2024-04-04 12:36:23 +02:00
Windows: Add MSVC defines for inline and restrict keywords.
This commit is contained in:
parent
a19d9e8575
commit
69fd4e1c93
1 changed files with 10 additions and 0 deletions
|
@ -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…
Reference in a new issue