Skip to content
Merged
Show file tree
Hide file tree
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
1 change: 0 additions & 1 deletion include/podio/detail/Pythonizations.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#ifndef PODIO_DETAIL_PYTHONIZATIONS_H
#define PODIO_DETAIL_PYTHONIZATIONS_H

#define PY_SSIZE_T_CLEAN
#include <string>

typedef struct _object PyObject;
Expand Down
7 changes: 4 additions & 3 deletions src/Pythonizations.cc
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
// NOTE: Python.h must be included before any standard headers and should be preceded by PY_SSIZE_T_CLEAN definition
#define PY_SSIZE_T_CLEAN
#include <Python.h>

#include "podio/detail/Pythonizations.h"

#include <cstring>
#include <stdexcept>

#include <Python.h>

namespace podio::detail::pythonizations {

// Callback function for the subscript pythonization
Expand Down