Base: Clean up Python includes in PyObjectBase.h.

This commit is contained in:
tritao
2025-03-26 12:43:13 +00:00
parent ed3263e67b
commit 718773bc9c

View File

@@ -25,36 +25,11 @@
// clang-format off
// NOLINTBEGIN(cppcoreguidelines-macro-usage)
// Std. configurations
// (re-)defined in pyconfig.h
#if defined (_POSIX_C_SOURCE)
# undef _POSIX_C_SOURCE
#endif
#if defined (_XOPEN_SOURCE)
# undef _XOPEN_SOURCE
#endif
// needed header
#undef slots
#include <Python.h>
#ifdef FC_OS_MACOSX
#undef toupper
#undef tolower
#undef isupper
#undef islower
#undef isspace
#undef isalpha
#undef isalnum
#endif
#define slots
#include <bitset>
#include <cstring>
#include "Exception.h"
#include <CXX/Objects.hxx>
#include "Exception.h"
/** Python static class macro for definition
* sets up a static function entry in a class inheriting