octave: use _Exit instead of _exit
- _exit is a POSIX function (unistd.h), whereas _Exit is in C99 (stdlib.h) and is therefore more likely to be supported by C++ compilers (cstdlib) git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13318 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
33926f1201
commit
d1ae77bdc2
1 changed files with 2 additions and 1 deletions
|
|
@ -132,8 +132,9 @@ DEFUN_DLD( swig_this, args, nargout, swig_this_usage ) {
|
|||
#ifdef SWIG_OCTAVE_SEGFAULT_HACK
|
||||
#define _SWIG_OCT_SEGF_HACK_ATEXIT_FCN(NAME) SWIG_OCT_SEGF_HACK_ATEXIT_FCN_##NAME
|
||||
#define SWIG_OCT_SEGF_HACK_ATEXIT_FCN(NAME) _SWIG_OCT_SEGF_HACK_ATEXIT_FCN(NAME)
|
||||
#include <cstdlib>
|
||||
void SWIG_OCT_SEGF_HACK_ATEXIT_FCN(SWIG_name)(void) {
|
||||
_exit(exit_status);
|
||||
_Exit(exit_status);
|
||||
}
|
||||
#endif
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue