fix --without-cfitsio

oops, was broken, thanks Mike
This commit is contained in:
John Cupitt 2011-08-11 09:35:02 +01:00
parent b748961743
commit f000d93042
2 changed files with 17 additions and 2 deletions

View File

@ -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

View File

@ -56,10 +56,24 @@
#endif /*HAVE_CONFIG_H*/
#include <vips/intl.h>
#ifdef HAVE_CFITSIO
#ifndef HAVE_CFITSIO
#include <vips/vips.h>
/* 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 <stdio.h>
#include <assert.h>
#include <stdlib.h>
#include <string.h>