From 0032dadb3880d80e7c6b907976270c1d5e2463ae Mon Sep 17 00:00:00 2001 From: Kevin Mooney Date: Mon, 18 May 2020 15:51:56 +0100 Subject: [PATCH] bpo-39026: Allow relative include paths Prior to this change, the following would fail to compile with gcc main.c #include "include/python3.9/Python.h" int main() {} The compiler would complain that cpython/initconfig.h didn't exist. --- Include/cpython/pystate.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Include/cpython/pystate.h b/Include/cpython/pystate.h index f292da1d3c6c5e..33a8c1c854c621 100644 --- a/Include/cpython/pystate.h +++ b/Include/cpython/pystate.h @@ -6,7 +6,7 @@ extern "C" { #endif -#include "cpython/initconfig.h" +#include "initconfig.h" PyAPI_FUNC(int) _PyInterpreterState_RequiresIDRef(PyInterpreterState *); PyAPI_FUNC(void) _PyInterpreterState_RequireIDRef(PyInterpreterState *, int);