File tree Expand file tree Collapse file tree 7 files changed +17
-7
lines changed Expand file tree Collapse file tree 7 files changed +17
-7
lines changed Original file line number Diff line number Diff line change @@ -104,9 +104,9 @@ ROOT tutorials: `$ROOTSYS/tutorials/image/`
104104# include < win32/afterbase.h>
105105# define X_DISPLAY_MISSING 1
106106#endif
107+ extern " C" {
107108# include < afterimage.h>
108109# include < bmp.h>
109- extern " C" {
110110# include < draw.h>
111111}
112112
Original file line number Diff line number Diff line change @@ -46,8 +46,8 @@ It is called by a pull down menu item of TASImage.
4646# include < win32/config.h>
4747# include < win32/afterbase.h>
4848#endif
49- # include < afterimage.h>
5049extern " C" {
50+ # include < afterimage.h>
5151# include < bmp.h>
5252}
5353
Original file line number Diff line number Diff line change 1717 * *
1818 **********************************************************************************/
1919
20- #include < Python.h> // Needs to be included first to avoid redefinition of _POSIX_C_SOURCE
20+ extern " C" {
21+ #include < Python.h> // Needs to be included first to avoid redefinition of _POSIX_C_SOURCE
22+ }
2123#include " TMVA/MethodPyAdaBoost.h"
2224
2325#define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION
Original file line number Diff line number Diff line change 1717 * *
1818 **********************************************************************************/
1919
20- #include < Python.h> // Needs to be included first to avoid redefinition of _POSIX_C_SOURCE
20+ extern " C" {
21+ #include < Python.h> // Needs to be included first to avoid redefinition of _POSIX_C_SOURCE
22+ }
2123#include " TMVA/MethodPyGTB.h"
2224
2325#define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION
Original file line number Diff line number Diff line change 11// @(#)root/tmva/pymva $Id$
22// Author: Stefan Wunsch, 2016
33
4- #include < Python.h>
4+ extern " C" {
5+ #include < Python.h>
6+ }
57#include " TMVA/MethodPyKeras.h"
68
79#define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION
Original file line number Diff line number Diff line change 1616 * (http://tmva.sourceforge.net/LICENSE) *
1717 * *
1818 **********************************************************************************/
19- #include < Python.h> // Needs to be included first to avoid redefinition of _POSIX_C_SOURCE
19+ extern " C" {
20+ #include < Python.h> // Needs to be included first to avoid redefinition of _POSIX_C_SOURCE
21+ }
2022#include " TMVA/MethodPyRandomForest.h"
2123
2224#define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION
Original file line number Diff line number Diff line change 1111 * *
1212 **********************************************************************************/
1313
14- #include < Python.h> // Needs to be included first to avoid redefinition of _POSIX_C_SOURCE
14+ extern " C" {
15+ #include < Python.h> // Needs to be included first to avoid redefinition of _POSIX_C_SOURCE
16+ }
1517#include < TMVA/PyMethodBase.h>
1618
1719#include " TMVA/DataSet.h"
You can’t perform that action at this time.
0 commit comments