Base: use forward declaration instead of including Python.h

This commit is contained in:
wmayer
2022-03-03 19:18:07 +01:00
parent dc1f35804d
commit 6ff1ccb140
6 changed files with 19 additions and 5 deletions

View File

@@ -21,18 +21,24 @@
* *
***************************************************************************/
#pragma once
#ifndef BASE_CONSOLE_H
#define BASE_CONSOLE_H
// Std. configurations
#include <Base/PyExport.h>
#include <Base/Stream.h>
//#pragma warning(disable: 4786) // specifier longer then 255 chars
#include <chrono>
#include <map>
#include <set>
#include <string>
#include <sstream>
// Python stuff
typedef struct _object PyObject;
typedef struct PyMethodDef PyMethodDef;
//FIXME: ISO C++11 requires at least one argument for the "..." in a variadic macro
#if defined(__clang__)
# pragma clang diagnostic push
@@ -747,3 +753,5 @@ private:
#if defined(__clang__)
# pragma clang diagnostic pop
#endif
#endif // BASE_CONSOLE_H