Skip to content

Commit

Permalink
#if defined(__linux__) || defined(DARWIN)
Browse files Browse the repository at this point in the history
  • Loading branch information
nrnhines committed Nov 30, 2024
1 parent 1c58958 commit cea45e5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/nrnpython/inithoc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ static int have_opt(const char* arg) {
return 0;
}

#if __linux__ || DARWIN
#if defined(__linux__) || defined(DARWIN)

/* we do this because thread sanitizer does not allow system calls.
In particular
Expand Down Expand Up @@ -242,7 +242,7 @@ void nrnpython_finalize() {
#endif
Py_Finalize();
}
#if __linux__ || DARWIN
#if defined(__linux__) || defined(DARWIN)
restore_original_terminal_settings();
#endif
}
Expand All @@ -254,7 +254,7 @@ extern "C" NRN_EXPORT PyObject* PyInit_hoc() {
main_thread_ = std::this_thread::get_id();
#endif

#if __linux__ || DARWIN
#if defined(__linux__) || defined(DARWIN)
save_original_terminal_settings();
#endif // __linux__

Expand Down

0 comments on commit cea45e5

Please sign in to comment.