gh-135755: Use private names (_Py*) for header file guards new in 3.14 (GH-135921)

These are private API; let's name new ones accordingly.
This commit is contained in:
Petr Viktorin 2025-06-26 13:05:01 +02:00 committed by GitHub
parent 9193efdeab
commit 6be17baeb5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 9 additions and 9 deletions

View file

@ -1,5 +1,5 @@
#ifndef Py_AUDIT_H
#define Py_AUDIT_H
#ifndef _Py_AUDIT_H
#define _Py_AUDIT_H
#ifdef __cplusplus
extern "C" {
#endif
@ -18,13 +18,13 @@ PyAPI_FUNC(int) PySys_AuditTuple(
#ifndef Py_LIMITED_API
# define Py_CPYTHON_AUDIT_H
# define _Py_CPYTHON_AUDIT_H
# include "cpython/audit.h"
# undef Py_CPYTHON_AUDIT_H
# undef _Py_CPYTHON_AUDIT_H
#endif
#ifdef __cplusplus
}
#endif
#endif /* !Py_AUDIT_H */
#endif /* !_Py_AUDIT_H */