Skip to content

Commit 0950039

Browse files
committed
add a few missing #ifdef ENABLE_PYTHON3
Signed-off-by: Matt Liberty <[email protected]>
1 parent e9d04dd commit 0950039

File tree

3 files changed

+5
-0
lines changed

3 files changed

+5
-0
lines changed

include/ord/OpenRoad.hh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -291,6 +291,8 @@ class OpenRoad
291291

292292
int tclAppInit(Tcl_Interp* interp);
293293
int tclInit(Tcl_Interp* interp);
294+
#ifdef ENABLE_PYTHON3
294295
void pyAppInit(bool exit_after_cmd_file);
296+
#endif
295297

296298
} // namespace ord

src/Main.cc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -310,6 +310,7 @@ int main(int argc, char* argv[])
310310
return 0;
311311
}
312312

313+
#ifdef ENABLE_PYTHON3
313314
void ord::pyAppInit(const bool exit_after_cmd_file)
314315
{
315316
#if PY_VERSION_HEX >= 0x03080000
@@ -318,6 +319,7 @@ void ord::pyAppInit(const bool exit_after_cmd_file)
318319
initPython();
319320
#endif // PY_VERSION_HEX >= 0x03080000
320321
}
322+
#endif
321323

322324
#ifdef ENABLE_READLINE
323325
static int tclReadlineInit(Tcl_Interp* interp)

src/gui/src/stub.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,7 @@ std::string Descriptor::Property::toString(const std::any& /* value */)
160160
// using namespace odb;
161161
int startGui(int& argc,
162162
char* argv[],
163+
Interpreter interpreter,
163164
Tcl_Interp* interp,
164165
const std::string& script,
165166
bool interactive,

0 commit comments

Comments
 (0)