Mantid
Loading...
Searching...
No Matches
WrapPython.h
Go to the documentation of this file.
1// Mantid Repository : https://github.com/mantidproject/mantid
2//
3// Copyright © 2019 ISIS Rutherford Appleton Laboratory UKRI,
4// NScD Oak Ridge National Laboratory, European Spallation Source,
5// Institut Laue - Langevin & CSNS, Institute of High Energy Physics, CAS
6// SPDX - License - Identifier: GPL - 3.0 +
7#pragma once
8
9// Including Python.h from a location where a "slots" is an active macro,
10// e.g. when a Qt header is included, causes a failure under Python 3
11// due to a slots field inside the PyType_Spec type being redefined.
12
13// Include this header instead of Python.h to avoid this.
14
15#pragma push_macro("slots")
16#undef slots
17#include <boost/python/detail/wrap_python.hpp>
18#pragma pop_macro("slots")