mirror of
https://abf.rosa.ru/djam/python3.11.git
synced 2025-02-24 02:32:53 +00:00
19 lines
874 B
Diff
19 lines
874 B
Diff
diff -up Python-3.8.0/Include/dynamic_annotations.h.omv~ Python-3.8.0/Include/dynamic_annotations.h
|
|
--- Python-3.8.0/Include/dynamic_annotations.h.omv~ 2019-11-03 21:12:44.032504529 +0100
|
|
+++ Python-3.8.0/Include/dynamic_annotations.h 2019-11-03 21:13:44.009529546 +0100
|
|
@@ -460,6 +460,7 @@ int RunningOnValgrind(void);
|
|
#endif
|
|
|
|
#if DYNAMIC_ANNOTATIONS_ENABLED != 0 && defined(__cplusplus)
|
|
+extern "C++" { // We might be included from an extern "C" block...
|
|
|
|
/* _Py_ANNOTATE_UNPROTECTED_READ is the preferred way to annotate racey reads.
|
|
|
|
@@ -476,6 +477,7 @@ 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 { \
|