From 9cba3cbb3a6210819d5e2cc8ab341ecc663837d5 Mon Sep 17 00:00:00 2001 From: Pere Mato <pere.mato@cern.ch> Date: Wed, 12 Oct 2016 15:09:04 +0200 Subject: [PATCH] Avoid defition of toupper() too early --- tmva/pymva/inc/TMVA/PyMethodBase.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/tmva/pymva/inc/TMVA/PyMethodBase.h b/tmva/pymva/inc/TMVA/PyMethodBase.h index 84a7c5a395f..92973199b03 100644 --- a/tmva/pymva/inc/TMVA/PyMethodBase.h +++ b/tmva/pymva/inc/TMVA/PyMethodBase.h @@ -23,10 +23,11 @@ // // //////////////////////////////////////////////////////////////////////////////// -#include <Python.h> // Needs to be included first to avoid redefinition of _POSIX_C_SOURCE #include "TMVA/MethodBase.h" #include "TMVA/Types.h" +#include <Python.h> // Needs to be included first to avoid redefinition of _POSIX_C_SOURCE + #include "Rtypes.h" #include "TString.h" @@ -38,9 +39,6 @@ class TSpline; class TH1F; class TH1D; -struct _object; -typedef _object PyObject; - // needed by NPY_API_VERSION #include "numpy/numpyconfig.h" -- GitLab