diff options
Diffstat (limited to 'compat/macros1.h')
-rw-r--r-- | compat/macros1.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/compat/macros1.h b/compat/macros1.h index 4c2d1c1e..148e1a77 100644 --- a/compat/macros1.h +++ b/compat/macros1.h @@ -48,3 +48,9 @@ //# define FULL_BARRIER() __sync_synchronize() # define COMPILER_BARRIER() asm volatile("" ::: "memory") #endif + +#ifdef _MSC_VER +# define unreachable() __assume(0) +#else +# define unreachable() __builtin_unreachable() +#endif |