Salome HOME
Changes in source code within porting on CentOS 6.3
[modules/shaper.git] / src / PyInterp / PyInterp.h
1
2 #if !defined ( PYINTERP_H )
3 #define PYINTERP_H
4
5 // ========================================================
6 // set dllexport type for Win platform 
7 #ifdef WIN32
8 # if defined PYINTERP_EXPORTS || defined PyInterp_EXPORTS
9 #  define PYINTERP_EXPORT __declspec(dllexport)
10 # else
11 #  define PYINTERP_EXPORT __declspec(dllimport)
12 # endif
13 #else   // WIN32
14 # define PYINTERP_EXPORT
15 #endif  // WIN32
16
17 // ========================================================
18 // little trick - if we do not have debug python libraries
19 #ifdef _DEBUG
20  #ifndef HAVE_DEBUG_PYTHON
21   #undef _DEBUG
22  #endif
23 #endif
24
25 #include <Python.h>
26
27 #ifdef _DEBUG
28  #ifndef HAVE_DEBUG_PYTHON
29   #define _DEBUG
30  #endif
31 #endif
32
33 // ========================================================
34 // avoid warning messages
35 #ifdef WIN32
36 #pragma warning (disable : 4786)
37 #pragma warning (disable : 4251)
38 #endif
39
40 #endif // PYINTERP_H