Skip to content

Commit 665a682

Browse files
[3.14] gh-135755: Use private names (_Py*) for header file guards new in 3.14 (GH-135921) (GH-135976)
These are private API; let's name new ones accordingly. (cherry picked from commit 6be17ba) Co-authored-by: Petr Viktorin <encukou@gmail.com>
1 parent 028901e commit 665a682

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

Include/audit.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
#ifndef Py_AUDIT_H
2-
#define Py_AUDIT_H
1+
#ifndef _Py_AUDIT_H
2+
#define _Py_AUDIT_H
33
#ifdef __cplusplus
44
extern "C" {
55
#endif
@@ -18,13 +18,13 @@ PyAPI_FUNC(int) PySys_AuditTuple(
1818

1919

2020
#ifndef Py_LIMITED_API
21-
# define Py_CPYTHON_AUDIT_H
21+
# define _Py_CPYTHON_AUDIT_H
2222
# include "cpython/audit.h"
23-
# undef Py_CPYTHON_AUDIT_H
23+
# undef _Py_CPYTHON_AUDIT_H
2424
#endif
2525

2626

2727
#ifdef __cplusplus
2828
}
2929
#endif
30-
#endif /* !Py_AUDIT_H */
30+
#endif /* !_Py_AUDIT_H */

Include/cpython/audit.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#ifndef Py_CPYTHON_AUDIT_H
1+
#ifndef _Py_CPYTHON_AUDIT_H
22
# error "this header file must not be included directly"
33
#endif
44

Include/refcount.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
#ifndef Py_REFCOUNT_H
2-
#define Py_REFCOUNT_H
1+
#ifndef _Py_REFCOUNT_H
2+
#define _Py_REFCOUNT_H
33
#ifdef __cplusplus
44
extern "C" {
55
#endif
@@ -564,4 +564,4 @@ static inline PyObject* _Py_XNewRef(PyObject *obj)
564564
#ifdef __cplusplus
565565
}
566566
#endif
567-
#endif // !Py_REFCOUNT_H
567+
#endif // !_Py_REFCOUNT_H

0 commit comments

Comments
 (0)