Skip to content

Commit b184f48

Browse files
authored
[3.12] gh-127902: Make sure extern "C" is closed when using Py_LIMITED_API (#127904)
Fixes #127902.
1 parent 2d31733 commit b184f48

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Include/tracemalloc.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
#ifndef Py_TRACEMALLOC_H
22
#define Py_TRACEMALLOC_H
3+
#ifndef Py_LIMITED_API
34
#ifdef __cplusplus
45
extern "C" {
56
#endif
67

7-
#ifndef Py_LIMITED_API
88
/* Track an allocated memory block in the tracemalloc module.
99
Return 0 on success, return -1 on error (failed to allocate memory to store
1010
the trace).

0 commit comments

Comments
 (0)