Mercurial > hg > octave-nkf
changeset 19399:4d460b124be3
Fix compilation error when building without SuiteSparse
* oct-sparse.h: Fix SuiteSparse version conditional to evaluate the
SUITESPARSE_VER_CODE macro only when building with SuiteSparse.
author | Mike Miller <mtmiller@ieee.org> |
---|---|
date | Fri, 03 Oct 2014 23:26:14 -0400 |
parents | 65cf441abc5e |
children | 5f21e0bff135 |
files | liboctave/util/oct-sparse.h |
diffstat | 1 files changed, 8 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/liboctave/util/oct-sparse.h +++ b/liboctave/util/oct-sparse.h @@ -96,12 +96,14 @@ // Cope with new suitesparse versions // -#if defined (SUITESPARSE_VERSION) && SUITESPARSE_VERSION >= SUITESPARSE_VER_CODE (4, 3) -# define SUITESPARSE_ASSIGN_FPTR(f_name, f_var, f_assign) (SuiteSparse_config.f_name = f_assign) -# define SUITESPARSE_ASSIGN_FPTR2(f_name, f_var, f_assign) (SuiteSparse_config.f_name = CHOLMOD_NAME (f_assign)) -#else -# define SUITESPARSE_ASSIGN_FPTR(f_name, f_var, f_assign) (f_var = f_assign) -# define SUITESPARSE_ASSIGN_FPTR2(f_name, f_var, f_assign) (f_var = CHOLMOD_NAME (f_assign)) +#if defined (SUITESPARSE_VERSION) +# if SUITESPARSE_VERSION >= SUITESPARSE_VER_CODE (4, 3) +# define SUITESPARSE_ASSIGN_FPTR(f_name, f_var, f_assign) (SuiteSparse_config.f_name = f_assign) +# define SUITESPARSE_ASSIGN_FPTR2(f_name, f_var, f_assign) (SuiteSparse_config.f_name = CHOLMOD_NAME (f_assign)) +# else +# define SUITESPARSE_ASSIGN_FPTR(f_name, f_var, f_assign) (f_var = f_assign) +# define SUITESPARSE_ASSIGN_FPTR2(f_name, f_var, f_assign) (f_var = CHOLMOD_NAME (f_assign)) +# endif #endif #endif