summaryrefslogtreecommitdiff
path: root/Python/random.c
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2018-11-12 22:27:05 -0800
committerGitHub <noreply@github.com>2018-11-12 22:27:05 -0800
commit60cf26528b931215160a53fd61836dbe4f036009 (patch)
tree3af5006142ddef67efc855bca9618bbef3bc4406 /Python/random.c
parent41fdbaa3ea622c3f64d4ab8f70fc79d35729071a (diff)
downloadcpython-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.c4
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);
}