]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-129296: Fix `pyatomic.h` include paths (#129320)
authorZanie Blue <contact@zanie.dev>
Wed, 29 Jan 2025 15:06:19 +0000 (09:06 -0600)
committerGitHub <noreply@github.com>
Wed, 29 Jan 2025 15:06:19 +0000 (15:06 +0000)
Use relative includes in Include/cpython/pyatomic.h for
pyatomic_gcc.h, pyatomic_std.h and pyatomic_msc.h.

Do a similar change in Include/cpython/pythread.h for
pthread_stubs.h include.

Include/cpython/pyatomic.h
Include/cpython/pythread.h

index 6d106c1b499c69ed3c28062c4eb30379df0daf31..2a0c11e7b3ad66533a83d1259a3816dbb591d3c4 100644 (file)
@@ -574,15 +574,15 @@ static inline void _Py_atomic_fence_release(void);
 
 #if _Py_USE_GCC_BUILTIN_ATOMICS
 #  define Py_ATOMIC_GCC_H
-#  include "cpython/pyatomic_gcc.h"
+#  include "pyatomic_gcc.h"
 #  undef Py_ATOMIC_GCC_H
 #elif __STDC_VERSION__ >= 201112L && !defined(__STDC_NO_ATOMICS__)
 #  define Py_ATOMIC_STD_H
-#  include "cpython/pyatomic_std.h"
+#  include "pyatomic_std.h"
 #  undef Py_ATOMIC_STD_H
 #elif defined(_MSC_VER)
 #  define Py_ATOMIC_MSC_H
-#  include "cpython/pyatomic_msc.h"
+#  include "pyatomic_msc.h"
 #  undef Py_ATOMIC_MSC_H
 #else
 #  error "no available pyatomic implementation for this platform/compiler"
index 03f710a9f7ef2e79034769994a9d1467d5328ae9..e658b35bd90700eb1dabad03497c2b52452db9ff 100644 (file)
@@ -22,7 +22,7 @@ PyAPI_DATA(const long long) PY_TIMEOUT_MAX;
     */
 #   define NATIVE_TSS_KEY_T     unsigned long
 #elif defined(HAVE_PTHREAD_STUBS)
-#   include "cpython/pthread_stubs.h"
+#   include "pthread_stubs.h"
 #   define NATIVE_TSS_KEY_T     pthread_key_t
 #else
 #   error "Require native threads. See https://bugs.python.org/issue31370"