Skip to content

Commit e7d6e29

Browse files
committed
Fix non-python build
1 parent 74360ac commit e7d6e29

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

src/Core/Python/PythonInterpreter.cc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828

2929
/// @todo Documentation Core/Python/PythonInterpreter.cc
3030

31+
#ifdef BUILD_WITH_PYTHON
3132
#ifdef _MSC_VER
3233
//#pragma warning( push )
3334
#pragma warning( disable: 4244 )
@@ -697,3 +698,4 @@ std::string PythonInterpreter::EscapeSingleQuotedString( const std::string& str
697698
static const boost::regex reg( "[\\\\']" );
698699
return boost::regex_replace( str, reg, "\\\\$&", boost::regex_constants::format_default );
699700
}
701+
#endif

src/Core/Python/PythonInterpreter.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
DEALINGS IN THE SOFTWARE.
2727
*/
2828

29+
#ifdef BUILD_WITH_PYTHON
2930
#ifndef CORE_PYTHON_PYTHONINTERPRETER_H
3031
#define CORE_PYTHON_PYTHONINTERPRETER_H
3132

@@ -124,3 +125,4 @@ class SCISHARE PythonInterpreter /*: private Core::EventHandler*/
124125
}}
125126

126127
#endif
128+
#endif

0 commit comments

Comments
 (0)