Fixed MSVC builds
This commit is contained in:
12
external/src/common/sanitizer/asan_interface.h
vendored
Normal file
12
external/src/common/sanitizer/asan_interface.h
vendored
Normal file
@@ -0,0 +1,12 @@
|
||||
#ifndef P2POOL_EXTERNAL_SRC_COMMON_SANITIZER_ASAN_INTERFACE_H
|
||||
#define P2POOL_EXTERNAL_SRC_COMMON_SANITIZER_ASAN_INTERFACE_H
|
||||
|
||||
#ifndef ASAN_POISON_MEMORY_REGION
|
||||
#define ASAN_POISON_MEMORY_REGION(addr, size) __asan_poison_memory_region((addr), (size))
|
||||
#endif
|
||||
|
||||
#ifndef ASAN_UNPOISON_MEMORY_REGION
|
||||
#define ASAN_UNPOISON_MEMORY_REGION(addr, size) __asan_unpoison_memory_region((addr), (size))
|
||||
#endif
|
||||
|
||||
#endif // P2POOL_EXTERNAL_SRC_COMMON_SANITIZER_ASAN_INTERFACE_H
|
||||
2
external/src/common/stdalign.h
vendored
2
external/src/common/stdalign.h
vendored
@@ -1,7 +1,7 @@
|
||||
#ifndef P2POOL_EXTERNAL_SRC_COMMON_STDALIGN_H
|
||||
#define P2POOL_EXTERNAL_SRC_COMMON_STDALIGN_H
|
||||
|
||||
#if !defined(__cplusplus) && defined(_MSC_VER) && (_MSC_VER < 1930)
|
||||
#if !defined(__cplusplus) && defined(_MSC_VER)
|
||||
#define alignas(x) __declspec(align(x))
|
||||
#define alignof __alignof
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user