diff --git a/dlib/error.h b/dlib/error.h index 6b70ae0f7..06c9238c2 100644 --- a/dlib/error.h +++ b/dlib/error.h @@ -260,9 +260,7 @@ namespace dlib // them. #if defined(MATLAB_MEX_FILE) return; -#endif - - +#else static bool is_first_fatal_error = true; if (is_first_fatal_error == false) { @@ -292,6 +290,7 @@ namespace dlib std::set_terminate(&dlib_fatal_error_terminate); } is_first_fatal_error = false; +#endif } }; diff --git a/dlib/matlab/subprocess_stream.h b/dlib/matlab/subprocess_stream.h index 866ed821e..a748c9f47 100644 --- a/dlib/matlab/subprocess_stream.h +++ b/dlib/matlab/subprocess_stream.h @@ -93,7 +93,7 @@ namespace dlib This is a tool for spawning a subprocess and communicating with it through that processes standard input, output, and error. Here is an example: - subprocess_stream s("/usr/bin/echo") + subprocess_stream s("/usr/bin/echo"); s << "echo me this!"; string line; getline(s, line);