summaryrefslogtreecommitdiffstats
path: root/contrib/tools/python3/Include/dynamic_annotations.h
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/tools/python3/Include/dynamic_annotations.h')
-rw-r--r--contrib/tools/python3/Include/dynamic_annotations.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/contrib/tools/python3/Include/dynamic_annotations.h b/contrib/tools/python3/Include/dynamic_annotations.h
index 4d4def9bf89..5290319dd76 100644
--- a/contrib/tools/python3/Include/dynamic_annotations.h
+++ b/contrib/tools/python3/Include/dynamic_annotations.h
@@ -461,6 +461,7 @@ int RunningOnValgrind(void);
#if DYNAMIC_ANNOTATIONS_ENABLED != 0 && defined(__cplusplus)
+extern "C++" {
/* _Py_ANNOTATE_UNPROTECTED_READ is the preferred way to annotate racey reads.
Instead of doing
@@ -476,6 +477,8 @@ int RunningOnValgrind(void);
_Py_ANNOTATE_IGNORE_READS_END();
return res;
}
+}
+
/* Apply _Py_ANNOTATE_BENIGN_RACE_SIZED to a static variable. */
#define _Py_ANNOTATE_BENIGN_RACE_STATIC(static_var, description) \
namespace { \