diff options
Diffstat (limited to 'Python')
-rw-r--r-- | Python/bootstrap_hash.c | 4 | ||||
-rw-r--r-- | Python/pymath.c | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/Python/bootstrap_hash.c b/Python/bootstrap_hash.c index 1b8f9d904a..793c646f12 100644 --- a/Python/bootstrap_hash.c +++ b/Python/bootstrap_hash.c @@ -20,7 +20,7 @@ # endif #endif -#ifdef MEMORY_SANITIZER +#ifdef _Py_MEMORY_SANITIZER # include <sanitizer/msan_interface.h> #endif @@ -147,7 +147,7 @@ py_getrandom(void *buffer, Py_ssize_t size, int blocking, int raise) else { n = syscall(SYS_getrandom, dest, n, flags); } -# ifdef MEMORY_SANITIZER +# ifdef _Py_MEMORY_SANITIZER if (n > 0) { __msan_unpoison(dest, n); } diff --git a/Python/pymath.c b/Python/pymath.c index c1606bd6d1..24b804223e 100644 --- a/Python/pymath.c +++ b/Python/pymath.c @@ -17,7 +17,7 @@ double _Py_force_double(double x) /* inline assembly for getting and setting the 387 FPU control word on gcc/x86 */ -#ifdef MEMORY_SANITIZER +#ifdef _Py_MEMORY_SANITIZER __attribute__((no_sanitize_memory)) #endif unsigned short _Py_get_387controlword(void) { |