Skip to content

Commit

Permalink
Fix an incorrect C declaration and an unguarded macro reference (foun…
Browse files Browse the repository at this point in the history
…d by gcc -Wundef -Wstrict-prototypes) (GH-5756)
  • Loading branch information
prj- committed Oct 9, 2023
1 parent 459f7c6 commit f4b10ff
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Cython/Compiler/ModuleNode.py
Expand Up @@ -792,7 +792,7 @@ def generate_module_preamble(self, env, options, cimported_modules, metadata, co
code.globalstate["end"].putln("#endif /* Py_PYTHON_H */")

from .. import __version__
code.putln('#if CYTHON_LIMITED_API') # CYTHON_COMPILING_IN_LIMITED_API not yet defined
code.putln('#if defined(CYTHON_LIMITED_API) && CYTHON_LIMITED_API') # CYTHON_COMPILING_IN_LIMITED_API not yet defined
# The limited API makes some significant changes to data structures, so we don't
# want to shared implementation compiled with and without the limited API.
code.putln('#define __PYX_EXTRA_ABI_MODULE_NAME "limited"')
Expand Down
2 changes: 1 addition & 1 deletion Cython/Utility/ModuleSetupCode.c
Expand Up @@ -1837,7 +1837,7 @@ static void __pyx_insert_code_object(int code_line, PyCodeObject* code_object) {

/////////////// CheckBinaryVersion.proto ///////////////

static unsigned long __Pyx_get_runtime_version();
static unsigned long __Pyx_get_runtime_version(void);
static int __Pyx_check_binary_version(unsigned long ct_version, unsigned long rt_version, int allow_newer);

/////////////// CheckBinaryVersion ///////////////
Expand Down

0 comments on commit f4b10ff

Please sign in to comment.