mirror of
https://github.com/fadden/nulib2.git
synced 2024-10-31 11:08:35 +00:00
configure: Fix C99 compatibility issue
Avoid calling the undeclared exit function. This avoids a check failure with a future compiler that does not support implicit function declarations.
This commit is contained in:
parent
0f957f9e83
commit
6eb33543cb
2
nufxlib/configure
vendored
2
nufxlib/configure
vendored
@ -4033,7 +4033,7 @@ else
|
||||
int count;
|
||||
char buf[8];
|
||||
count = sprintf(buf, "123"); /* should return three */
|
||||
exit(count != 3);
|
||||
return count != 3;
|
||||
}
|
||||
|
||||
_ACEOF
|
||||
|
@ -134,7 +134,7 @@ AC_CACHE_VAL(nufxlib_cv_sprintf_returns_int, [
|
||||
int count;
|
||||
char buf[8];
|
||||
count = sprintf(buf, "123"); /* should return three */
|
||||
exit(count != 3);
|
||||
return count != 3;
|
||||
}
|
||||
],
|
||||
[nufxlib_cv_sprintf_returns_int=yes], [nufxlib_cv_sprintf_returns_int=no],
|
||||
|
Loading…
Reference in New Issue
Block a user