summaryrefslogtreecommitdiff
path: root/Include/Python.h
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 /Include/Python.h
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 'Include/Python.h')
-rw-r--r--Include/Python.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/Include/Python.h b/Include/Python.h
index 565f34a371..bf1dfac067 100644
--- a/Include/Python.h
+++ b/Include/Python.h
@@ -56,8 +56,8 @@
/* A convenient way for code to know if clang's memory sanitizer is enabled. */
#if defined(__has_feature)
# if __has_feature(memory_sanitizer)
-# if !defined(MEMORY_SANITIZER)
-# define MEMORY_SANITIZER
+# if !defined(_Py_MEMORY_SANITIZER)
+# define _Py_MEMORY_SANITIZER
# endif
# endif
#endif