diff options
Diffstat (limited to 'src/localconsts.h')
-rw-r--r-- | src/localconsts.h | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/src/localconsts.h b/src/localconsts.h index 8ff706f4a..3c40ca96c 100644 --- a/src/localconsts.h +++ b/src/localconsts.h @@ -79,12 +79,19 @@ #define A_UNUSED __attribute__ ((unused)) #define A_WARN_UNUSED __attribute__ ((warn_unused_result)) #define DEPRECATED __attribute__ ((deprecated)) + +#ifdef __native_client__ +#define restrict +#define restrict2 +#else // __native_client__ #define restrict __restrict__ #ifdef __clang__ #define restrict2 -#else +#else // __clang__ #define restrict2 __restrict__ -#endif +#endif // __clang__ +#endif // __native_client__ + #ifndef ENABLE_CILKPLUS #define A_CONST __attribute__ ((const)) #define A_PURE __attribute__ ((pure)) |