https://github.com/python/cpython/commit/da7f4e4b22020cfc6c5b5918756e454ef281848d
commit: da7f4e4b22020cfc6c5b5918756e454ef281848d
branch: main
author: Locked-chess-official <[email protected]>
committer: vstinner <[email protected]>
date: 2025-11-14T15:52:14Z
summary:

gh-141488: Add `Py_` prefix to Include/datetime.h macros (#141493)

files:
M Include/datetime.h

diff --git a/Include/datetime.h b/Include/datetime.h
index b78cc0e8e2e5ac..ed36e6e48c87d2 100644
--- a/Include/datetime.h
+++ b/Include/datetime.h
@@ -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 */

_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3//lists/python-checkins.python.org
Member address: [email protected]

Reply via email to