Skip to content

Commit 41463c3

Browse files
committed
Only define _old_terminate_handler when declared
This fixes --disable-exceptions builds for me.
1 parent 532031e commit 41463c3

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/base/libmesh.C

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,9 @@ MPI_Comm GLOBAL_COMM_WORLD = MPI_COMM_NULL;
160160
int GLOBAL_COMM_WORLD = 0;
161161
#endif
162162

163+
#ifdef LIBMESH_ENABLE_EXCEPTIONS
163164
std::terminate_handler LibMeshInit::_old_terminate_handler;
165+
#endif
164166

165167
OStreamProxy out(std::cout);
166168
OStreamProxy err(std::cerr);

0 commit comments

Comments
 (0)