Windows: Add MSVC defines for inline and restrict keywords.

This commit is contained in:
Lasse Collin 2014-01-12 17:04:33 +02:00
parent a19d9e8575
commit 69fd4e1c93
1 changed files with 10 additions and 0 deletions

View File

@ -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 //