diff options
Diffstat (limited to 'compat/macros.hpp')
| -rw-r--r-- | compat/macros.hpp | 12 | 
1 files changed, 7 insertions, 5 deletions
| diff --git a/compat/macros.hpp b/compat/macros.hpp index 84d6bd03..fcb4fea3 100644 --- a/compat/macros.hpp +++ b/compat/macros.hpp @@ -8,16 +8,18 @@  #   define never_inline  #endif -#if defined _MSC_VER || defined __GNUG__ -#   define restrict __restrict +#if defined __GNUG__ +#   define restrict_ptr __restrict +#elif defined _MSC_VER +#   define restrict_ptr __restrict  #else -#   define restrict +#   define restrict_ptr  #endif  #if defined _MSC_VER -#   define restrict_ref restrict +#   define restrict_ref restrict_ptr  #elif defined __GNUG__ -#   define restrict_ref restrict +#   define restrict_ref restrict_ptr  #else  #   define restrict_ref  #endif | 
