Salome HOME
SMH: Add again in binary mode
[modules/gui.git] / src / PythonConsole / PythonConsole.h
1 #if !defined ( _PYTHONCONSOLE_H )
2 #define _PYTHONCONSOLE_H
3
4 // ========================================================
5 // set dllexport type for Win platform 
6 #ifdef WNT
7
8 #ifdef PYTHONCONSOLE_EXPORTS
9 #define PYCONSOLE_EXPORT __declspec(dllexport)
10 #else
11 #define PYCONSOLE_EXPORT __declspec(dllimport)
12 #endif
13
14 #else   // WNT
15
16 #define PYCONSOLE_EXPORT
17
18 #endif  // WNT
19
20 // ========================================================
21 // little trick - we do not have debug python libraries
22 #ifdef _DEBUG
23
24 #undef _DEBUG
25 #include <Python.h>
26 #define _DEBUG
27
28 #else  // _DEBUG
29
30 #include <Python.h>
31
32 #endif // _DEBUG
33
34 // ========================================================
35 // avoid warning messages
36 #ifdef WNT
37 #pragma warning (disable : 4786)
38 #pragma warning (disable : 4251)
39 #endif
40
41 #endif // _PYTHONCONSOLE_H