Mercurial > octave
changeset 22888:e3fde9f1d47e stable
allow configure test to succeed without implicit fcn decls (bug #49782)
* acinclude.m4 (OCTAVE_CHECK_SIZEOF_FORTRAN_INT): Provide declaration
for test fucntion so that compilation will succeed with
-Werror=implicit-function-declaration. From Orion Poplawski.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Tue, 13 Dec 2016 12:14:56 -0500 |
parents | b3f5fe7e6f75 |
children | 953232868883 fd056e736f73 |
files | m4/acinclude.m4 |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/m4/acinclude.m4 Tue Dec 13 14:51:18 2016 -0500 +++ b/m4/acinclude.m4 Tue Dec 13 12:14:56 2016 -0500 @@ -1646,12 +1646,13 @@ AC_RUN_IFELSE([AC_LANG_PROGRAM([[ #include <assert.h> #include <stdint.h> - ]], [[ #if defined (OCTAVE_ENABLE_64) typedef int64_t octave_idx_type; #else typedef int octave_idx_type; #endif + void F77_FUNC(foo,FOO) (octave_idx_type*, octave_idx_type**, octave_idx_type**); + ]], [[ octave_idx_type n = 2; octave_idx_type in[2]; octave_idx_type out[2];