adjust for clang-gcc
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
#ifndef SN_INTERNAL
|
||||
#define SN_INTERNAL
|
||||
|
||||
#include <xmmintrin.h>
|
||||
#include <immintrin.h>
|
||||
|
||||
#define UNSAFE_AS(type, expr) *(type *)&(expr)
|
||||
|
||||
@@ -37,4 +37,9 @@
|
||||
#define PRIVATE static
|
||||
#define INTERNAL extern
|
||||
|
||||
#define SN_PTR_CAST(type, expr) ((type *)(void *)(expr))
|
||||
#define SN_CONST_PTR_CAST(type, expr) ((type const *)(void const *)(expr))
|
||||
#define SN_REF_CAST(type, expr) ((type *)(void *)&(expr))
|
||||
#define SN_CONST_REF_CAST(type, expr) ((type const *)(void const *)&(expr))
|
||||
|
||||
#endif //
|
||||
|
||||
Reference in New Issue
Block a user