mirror of https://github.com/fadden/nulib2.git
Merge pull request #15 from fweimer-rh/c99
configure: Fix C99 compatibility issue
This commit is contained in:
commit
811ebe9ba3
|
@ -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