Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions core/src/drivers/python_plugin_bridge.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@
#pragma GCC diagnostic ignored "-Wcpp"
#endif

// pyconfig.h defines these unconditionally. A libc header seen earlier may have set other values
// (glibc with POSIX.1-2024: 202405L / 800), and the redefinition is an error under -Werror.
#undef _POSIX_C_SOURCE
#undef _XOPEN_SOURCE

#include <Python.h>

#if defined(__GNUC__)
Expand Down