diff options
author | Victor Stinner <vstinner@python.org> | 2023-09-29 08:56:49 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-29 08:56:49 (GMT) |
commit | 8b626a47bafdb2d1ebb1321e50ffa5d6c721bf3a (patch) | |
tree | 325fbb4507cac60718250226d1b7f7e1db559ef3 /Python/pystate.c | |
parent | bfd94ab9e9f4055ecedaa500b46b0270da9ffe12 (diff) | |
download | cpython-8b626a47bafdb2d1ebb1321e50ffa5d6c721bf3a.zip cpython-8b626a47bafdb2d1ebb1321e50ffa5d6c721bf3a.tar.gz cpython-8b626a47bafdb2d1ebb1321e50ffa5d6c721bf3a.tar.bz2 |
gh-110079: Remove extern "C" { ...} in C code (#110080)
Diffstat (limited to 'Python/pystate.c')
-rw-r--r-- | Python/pystate.c | 21 |
1 files changed, 6 insertions, 15 deletions
diff --git a/Python/pystate.c b/Python/pystate.c index 570b524..01aa255 100644 --- a/Python/pystate.c +++ b/Python/pystate.c @@ -29,16 +29,12 @@ to avoid the expense of doing their own locking). -------------------------------------------------------------------------- */ #ifdef HAVE_DLOPEN -#ifdef HAVE_DLFCN_H -#include <dlfcn.h> -#endif -#if !HAVE_DECL_RTLD_LAZY -#define RTLD_LAZY 1 -#endif -#endif - -#ifdef __cplusplus -extern "C" { +# ifdef HAVE_DLFCN_H +# include <dlfcn.h> +# endif +# if !HAVE_DECL_RTLD_LAZY +# define RTLD_LAZY 1 +# endif #endif @@ -2985,8 +2981,3 @@ _PyThreadState_MustExit(PyThreadState *tstate) } return 1; } - - -#ifdef __cplusplus -} -#endif |