From f000d930425a06a682f64a00ac340fb5c9c670a5 Mon Sep 17 00:00:00 2001 From: John Cupitt Date: Thu, 11 Aug 2011 09:35:02 +0100 Subject: [PATCH] fix --without-cfitsio oops, was broken, thanks Mike --- ChangeLog | 1 + libvips/format/fits.c | 18 ++++++++++++++++-- 2 files changed, 17 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 40dfab81..30f23993 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,6 @@ 10/8/11 started 7.26.2 - oops, im_benchmark.c had some stuff turned off +- configure option --without-cfitsio was broken (thanks Mike) 26/7/11 started 7.26.1 - doc fixups diff --git a/libvips/format/fits.c b/libvips/format/fits.c index e5cd292d..639f006d 100644 --- a/libvips/format/fits.c +++ b/libvips/format/fits.c @@ -56,10 +56,24 @@ #endif /*HAVE_CONFIG_H*/ #include -#ifdef HAVE_CFITSIO +#ifndef HAVE_CFITSIO + +#include + +/* We call this from format_dispatch.c so we need a stub. + */ +int +im_fits2vips( const char *filename, VipsImage *out ) +{ + im_error( "im_fits2vips", "%s", + _( "FITS support disabled" ) ); + + return( -1 ); +} + +#else /*HAVE_CFITSIO*/ #include -#include #include #include