]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-141488: Add `Py_` prefix to Include/datetime.h macros (#141493)
authorLocked-chess-official <13140752715@163.com>
Fri, 14 Nov 2025 15:52:14 +0000 (23:52 +0800)
committerGitHub <noreply@github.com>
Fri, 14 Nov 2025 15:52:14 +0000 (15:52 +0000)
Include/datetime.h

index b78cc0e8e2e5accd5952438b9fb09c056cc057b7..ed36e6e48c87d255a55d22a3fa9df8771064b8e5 100644 (file)
@@ -1,8 +1,8 @@
 /*  datetime.h
  */
 #ifndef Py_LIMITED_API
-#ifndef DATETIME_H
-#define DATETIME_H
+#ifndef Py_DATETIME_H
+#define Py_DATETIME_H
 #ifdef __cplusplus
 extern "C" {
 #endif
@@ -263,5 +263,5 @@ static PyDateTime_CAPI *PyDateTimeAPI = NULL;
 #ifdef __cplusplus
 }
 #endif
-#endif
+#endif /* !Py_DATETIME_H */
 #endif /* !Py_LIMITED_API */