diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2018-11-12 22:27:05 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-11-12 22:27:05 -0800 |
commit | 60cf26528b931215160a53fd61836dbe4f036009 (patch) | |
tree | 3af5006142ddef67efc855bca9618bbef3bc4406 /Python/random.c | |
parent | 41fdbaa3ea622c3f64d4ab8f70fc79d35729071a (diff) | |
download | cpython-git-60cf26528b931215160a53fd61836dbe4f036009.tar.gz |
bpo-35214: Add _Py_ prefix to MEMORY_SANITIZER def. (GH-10503)
Rename our new MEMORY_SANITIZER define to _Py_MEMORY_SANITIZER.
Project based C Preprocessor namespacing at its finest. :P
(cherry picked from commit 3015fb8ce4d25603434b9b44bb7effb98a481532)
Co-authored-by: Gregory P. Smith <greg@krypto.org>
Diffstat (limited to 'Python/random.c')
-rw-r--r-- | Python/random.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Python/random.c b/Python/random.c index 8f6670457f..d4747d61eb 100644 --- a/Python/random.c +++ b/Python/random.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); } |