removed FINITE() macro.

2002-05-13  Sven Neumann  <sven@gimp.org>

	* libgimpmath/gimpmath.h: removed FINITE() macro.

	* tools/pdbgen/pdb/image.pdb
	* app/pdb/image_cmds.c: define FINITE() here, where it is used.

	* tools/pdbgen/pdb/lib.pl: add "config.h" to all generated libgimp
	.c files.

	* libgimp/gimp*_pdb.c: regenerated.

	* libgimp/gimpbrushmenu.c
	* libgimp/gimpchannel.c
	* libgimp/gimpdrawable.c
	* libgimp/gimpgradientmenu.c
	* libgimp/gimphelp.c
	* libgimp/gimpimage.c
	* libgimp/gimplayer.c
	* libgimp/gimppatternmenu.c
	* libgimp/gimppixelrgn.c
	* libgimp/gimpproceduraldb.c
	* libgimp/gimpselection.c
	* libgimp/gimptile.c
	* libgimp/gimpui.c
	* libgimpmath/gimpmatrix.c
	* libgimpmath/gimpvector.c
	* plug-ins/MapObject/arcball.c
	* plug-ins/fp/fp_gdk.c
	* plug-ins/fp/fp_misc.c
	* plug-ins/ifscompose/ifscompose_storage.c
	* plug-ins/ifscompose/ifscompose_utils.c
	* plug-ins/maze/handy.c
	* plug-ins/rcm/rcm_gdk.c
	* plug-ins/sel2path/edge.c
	* plug-ins/xjt/xjpeg.c
	* plug-ins/xjt/xpdb_calls.c: include "config.h".
This commit is contained in:
Sven Neumann 2002-05-13 23:30:23 +00:00 committed by Sven Neumann
parent 1ab94ead7e
commit fe0bf162c1
69 changed files with 210 additions and 34 deletions

View File

@ -1,3 +1,41 @@
2002-05-13 Sven Neumann <sven@gimp.org>
* libgimpmath/gimpmath.h: removed FINITE() macro.
* tools/pdbgen/pdb/image.pdb
* app/pdb/image_cmds.c: define FINITE() here, where it is used.
* tools/pdbgen/pdb/lib.pl: add "config.h" to all generated libgimp
.c files.
* libgimp/gimp*_pdb.c: regenerated.
* libgimp/gimpbrushmenu.c
* libgimp/gimpchannel.c
* libgimp/gimpdrawable.c
* libgimp/gimpgradientmenu.c
* libgimp/gimphelp.c
* libgimp/gimpimage.c
* libgimp/gimplayer.c
* libgimp/gimppatternmenu.c
* libgimp/gimppixelrgn.c
* libgimp/gimpproceduraldb.c
* libgimp/gimpselection.c
* libgimp/gimptile.c
* libgimp/gimpui.c
* libgimpmath/gimpmatrix.c
* libgimpmath/gimpvector.c
* plug-ins/MapObject/arcball.c
* plug-ins/fp/fp_gdk.c
* plug-ins/fp/fp_misc.c
* plug-ins/ifscompose/ifscompose_storage.c
* plug-ins/ifscompose/ifscompose_utils.c
* plug-ins/maze/handy.c
* plug-ins/rcm/rcm_gdk.c
* plug-ins/sel2path/edge.c
* plug-ins/xjt/xjpeg.c
* plug-ins/xjt/xpdb_calls.c: include "config.h".
2002-05-13 Sven Neumann <sven@gimp.org> 2002-05-13 Sven Neumann <sven@gimp.org>
* app/config/gimpconfig.c (gimp_config_serialize): serialize to a * app/config/gimpconfig.c (gimp_config_serialize): serialize to a

View File

@ -3752,6 +3752,24 @@ image_set_resolution_invoker (Gimp *gimp,
if (success) if (success)
{ {
#ifdef HAVE_FINITE
#define FINITE(x) finite(x)
#else
#ifdef HAVE_ISFINITE
#define FINITE(x) isfinite(x)
#else
#ifdef G_OS_WIN32
#define FINITE(x) _finite(x)
#else
#ifdef __EMX__
#define FINITE(x) isfinite(x)
#else
#error "no FINITE() implementation available?!"
#endif /* __EMX__ */
#endif /* G_OS_WIN32 */
#endif /* HAVE_ISFINITE */
#endif /* HAVE_FINITE */
if (!FINITE (xresolution) || if (!FINITE (xresolution) ||
xresolution < GIMP_MIN_RESOLUTION || xresolution > GIMP_MAX_RESOLUTION || xresolution < GIMP_MIN_RESOLUTION || xresolution > GIMP_MAX_RESOLUTION ||
!FINITE (yresolution) || !FINITE (yresolution) ||

View File

@ -1,3 +1,8 @@
2002-05-14 Sven Neumann <sven@gimp.org>
* libgimpmath/libgimpmath-sections.txt
* libgimpmath/tmpl/gimpmath.sgml: removed FINITE.
2002-05-13 Sven Neumann <sven@gimp.org> 2002-05-13 Sven Neumann <sven@gimp.org>
* libgimpwidgets/libgimpwidgets-sections.txt * libgimpwidgets/libgimpwidgets-sections.txt

View File

@ -8,7 +8,6 @@ MAX255
CLAMP0255 CLAMP0255
gimp_deg_to_rad gimp_deg_to_rad
gimp_rad_to_deg gimp_rad_to_deg
FINITE
</SECTION> </SECTION>
<SECTION> <SECTION>

View File

@ -77,11 +77,3 @@ Mathematical definitions and macros.
@angle: @angle:
<!-- ##### MACRO FINITE ##### -->
<para>
</para>
@x:

View File

@ -21,6 +21,8 @@
/* NOTE: This file is autogenerated by pdbgen.pl */ /* NOTE: This file is autogenerated by pdbgen.pl */
#include "config.h"
#include <string.h> #include <string.h>
#include "gimp.h" #include "gimp.h"

View File

@ -20,6 +20,8 @@
* Boston, MA 02111-1307, USA. * Boston, MA 02111-1307, USA.
*/ */
#include "config.h"
#include <string.h> #include <string.h>
#ifdef __GNUC__ #ifdef __GNUC__
@ -27,7 +29,6 @@
#endif #endif
#undef GTK_DISABLE_DEPRECATED #undef GTK_DISABLE_DEPRECATED
#include "gimp.h" #include "gimp.h"
#include "gimpui.h" #include "gimpui.h"

View File

@ -21,6 +21,8 @@
/* NOTE: This file is autogenerated by pdbgen.pl */ /* NOTE: This file is autogenerated by pdbgen.pl */
#include "config.h"
#include "gimp.h" #include "gimp.h"
/** /**

View File

@ -19,6 +19,8 @@
* Boston, MA 02111-1307, USA. * Boston, MA 02111-1307, USA.
*/ */
#include "config.h"
#include "gimp.h" #include "gimp.h"

View File

@ -21,6 +21,8 @@
/* NOTE: This file is autogenerated by pdbgen.pl */ /* NOTE: This file is autogenerated by pdbgen.pl */
#include "config.h"
#include "gimp.h" #include "gimp.h"
/** /**

View File

@ -21,6 +21,8 @@
/* NOTE: This file is autogenerated by pdbgen.pl */ /* NOTE: This file is autogenerated by pdbgen.pl */
#include "config.h"
#include "gimp.h" #include "gimp.h"
/** /**

View File

@ -21,6 +21,8 @@
/* NOTE: This file is autogenerated by pdbgen.pl */ /* NOTE: This file is autogenerated by pdbgen.pl */
#include "config.h"
#include "gimp.h" #include "gimp.h"
/** /**

View File

@ -21,6 +21,8 @@
/* NOTE: This file is autogenerated by pdbgen.pl */ /* NOTE: This file is autogenerated by pdbgen.pl */
#include "config.h"
#include "gimp.h" #include "gimp.h"
/** /**

View File

@ -19,7 +19,7 @@
* Boston, MA 02111-1307, USA. * Boston, MA 02111-1307, USA.
*/ */
#include <glib.h> #include "config.h"
#include "gimp.h" #include "gimp.h"

View File

@ -21,6 +21,8 @@
/* NOTE: This file is autogenerated by pdbgen.pl */ /* NOTE: This file is autogenerated by pdbgen.pl */
#include "config.h"
#include <string.h> #include <string.h>
#include "gimp.h" #include "gimp.h"

View File

@ -21,6 +21,8 @@
/* NOTE: This file is autogenerated by pdbgen.pl */ /* NOTE: This file is autogenerated by pdbgen.pl */
#include "config.h"
#include "gimp.h" #include "gimp.h"
/** /**

View File

@ -21,6 +21,8 @@
/* NOTE: This file is autogenerated by pdbgen.pl */ /* NOTE: This file is autogenerated by pdbgen.pl */
#include "config.h"
#include "gimp.h" #include "gimp.h"
/** /**

View File

@ -21,6 +21,8 @@
/* NOTE: This file is autogenerated by pdbgen.pl */ /* NOTE: This file is autogenerated by pdbgen.pl */
#include "config.h"
#include "gimp.h" #include "gimp.h"
/** /**

View File

@ -21,6 +21,8 @@
/* NOTE: This file is autogenerated by pdbgen.pl */ /* NOTE: This file is autogenerated by pdbgen.pl */
#include "config.h"
#include "gimp.h" #include "gimp.h"
/** /**

View File

@ -20,6 +20,8 @@
* Boston, MA 02111-1307, USA. * Boston, MA 02111-1307, USA.
*/ */
#include "config.h"
#include <string.h> #include <string.h>
#ifdef __GNUC__ #ifdef __GNUC__

View File

@ -21,6 +21,8 @@
/* NOTE: This file is autogenerated by pdbgen.pl */ /* NOTE: This file is autogenerated by pdbgen.pl */
#include "config.h"
#include <string.h> #include <string.h>
#include "gimp.h" #include "gimp.h"

View File

@ -21,6 +21,8 @@
/* NOTE: This file is autogenerated by pdbgen.pl */ /* NOTE: This file is autogenerated by pdbgen.pl */
#include "config.h"
#include "gimp.h" #include "gimp.h"
/** /**

View File

@ -21,6 +21,8 @@
/* NOTE: This file is autogenerated by pdbgen.pl */ /* NOTE: This file is autogenerated by pdbgen.pl */
#include "config.h"
#include "gimp.h" #include "gimp.h"
/** /**

View File

@ -20,6 +20,8 @@
* Boston, MA 02111-1307, USA. * Boston, MA 02111-1307, USA.
*/ */
#include "config.h"
#include "gimp.h" #include "gimp.h"
void void

View File

@ -21,6 +21,8 @@
/* NOTE: This file is autogenerated by pdbgen.pl */ /* NOTE: This file is autogenerated by pdbgen.pl */
#include "config.h"
#include "gimp.h" #include "gimp.h"
/** /**

View File

@ -19,6 +19,8 @@
* Boston, MA 02111-1307, USA. * Boston, MA 02111-1307, USA.
*/ */
#include "config.h"
#include "gimp.h" #include "gimp.h"

View File

@ -21,6 +21,8 @@
/* NOTE: This file is autogenerated by pdbgen.pl */ /* NOTE: This file is autogenerated by pdbgen.pl */
#include "config.h"
#include <string.h> #include <string.h>
#include "gimp.h" #include "gimp.h"

View File

@ -19,8 +19,11 @@
* Boston, MA 02111-1307, USA. * Boston, MA 02111-1307, USA.
*/ */
#include "config.h"
#include "gimp.h" #include "gimp.h"
/** /**
* gimp_layer_new: * gimp_layer_new:
* @image_ID: The image to which to add the layer. * @image_ID: The image to which to add the layer.

View File

@ -21,6 +21,8 @@
/* NOTE: This file is autogenerated by pdbgen.pl */ /* NOTE: This file is autogenerated by pdbgen.pl */
#include "config.h"
#include "gimp.h" #include "gimp.h"
/** /**

View File

@ -21,6 +21,8 @@
/* NOTE: This file is autogenerated by pdbgen.pl */ /* NOTE: This file is autogenerated by pdbgen.pl */
#include "config.h"
#include "gimp.h" #include "gimp.h"
/** /**

View File

@ -21,6 +21,8 @@
/* NOTE: This file is autogenerated by pdbgen.pl */ /* NOTE: This file is autogenerated by pdbgen.pl */
#include "config.h"
#include "gimp.h" #include "gimp.h"
/** /**

View File

@ -21,6 +21,8 @@
/* NOTE: This file is autogenerated by pdbgen.pl */ /* NOTE: This file is autogenerated by pdbgen.pl */
#include "config.h"
#include "gimp.h" #include "gimp.h"
/** /**

View File

@ -21,6 +21,8 @@
/* NOTE: This file is autogenerated by pdbgen.pl */ /* NOTE: This file is autogenerated by pdbgen.pl */
#include "config.h"
#include "gimp.h" #include "gimp.h"
/** /**

View File

@ -21,6 +21,8 @@
/* NOTE: This file is autogenerated by pdbgen.pl */ /* NOTE: This file is autogenerated by pdbgen.pl */
#include "config.h"
#include "gimp.h" #include "gimp.h"
/** /**

View File

@ -21,6 +21,8 @@
/* NOTE: This file is autogenerated by pdbgen.pl */ /* NOTE: This file is autogenerated by pdbgen.pl */
#include "config.h"
#include "gimp.h" #include "gimp.h"
/** /**

View File

@ -21,6 +21,8 @@
/* NOTE: This file is autogenerated by pdbgen.pl */ /* NOTE: This file is autogenerated by pdbgen.pl */
#include "config.h"
#include "gimp.h" #include "gimp.h"
/** /**

View File

@ -21,6 +21,8 @@
/* NOTE: This file is autogenerated by pdbgen.pl */ /* NOTE: This file is autogenerated by pdbgen.pl */
#include "config.h"
#include "gimp.h" #include "gimp.h"
/** /**

View File

@ -21,6 +21,8 @@
/* NOTE: This file is autogenerated by pdbgen.pl */ /* NOTE: This file is autogenerated by pdbgen.pl */
#include "config.h"
#include <string.h> #include <string.h>
#include "gimp.h" #include "gimp.h"

View File

@ -20,7 +20,9 @@
* Boston, MA 02111-1307, USA. * Boston, MA 02111-1307, USA.
*/ */
#include "string.h" #include "config.h"
#include <string.h>
#ifdef __GNUC__ #ifdef __GNUC__
#warning GTK_DISABLE_DEPRECATED #warning GTK_DISABLE_DEPRECATED

View File

@ -21,6 +21,8 @@
/* NOTE: This file is autogenerated by pdbgen.pl */ /* NOTE: This file is autogenerated by pdbgen.pl */
#include "config.h"
#include <string.h> #include <string.h>
#include "gimp.h" #include "gimp.h"

View File

@ -21,6 +21,8 @@
/* NOTE: This file is autogenerated by pdbgen.pl */ /* NOTE: This file is autogenerated by pdbgen.pl */
#include "config.h"
#include "gimp.h" #include "gimp.h"
/** /**

View File

@ -19,6 +19,8 @@
* Boston, MA 02111-1307, USA. * Boston, MA 02111-1307, USA.
*/ */
#include "config.h"
/* Experimental: comment-out the following #define if a memcpy() call is /* Experimental: comment-out the following #define if a memcpy() call is
slower than compiler-optimized memory copies for transfers of approx. slower than compiler-optimized memory copies for transfers of approx.
64-256 bytes. 64-256 bytes.

View File

@ -21,6 +21,8 @@
/* NOTE: This file is autogenerated by pdbgen.pl */ /* NOTE: This file is autogenerated by pdbgen.pl */
#include "config.h"
#include "gimp.h" #include "gimp.h"
/** /**

View File

@ -19,6 +19,8 @@
* Boston, MA 02111-1307, USA. * Boston, MA 02111-1307, USA.
*/ */
#include "config.h"
#include <string.h> /* memcmp */ #include <string.h> /* memcmp */
#include "gimp.h" #include "gimp.h"

View File

@ -21,6 +21,8 @@
/* NOTE: This file is autogenerated by pdbgen.pl */ /* NOTE: This file is autogenerated by pdbgen.pl */
#include "config.h"
#include <string.h> #include <string.h>
#include "gimp.h" #include "gimp.h"

View File

@ -19,6 +19,8 @@
* Boston, MA 02111-1307, USA. * Boston, MA 02111-1307, USA.
*/ */
#include "config.h"
#include "gimp.h" #include "gimp.h"
/** /**

View File

@ -21,6 +21,8 @@
/* NOTE: This file is autogenerated by pdbgen.pl */ /* NOTE: This file is autogenerated by pdbgen.pl */
#include "config.h"
#include "gimp.h" #include "gimp.h"
/** /**

View File

@ -21,6 +21,8 @@
/* NOTE: This file is autogenerated by pdbgen.pl */ /* NOTE: This file is autogenerated by pdbgen.pl */
#include "config.h"
#include "gimp.h" #include "gimp.h"
/** /**

View File

@ -21,6 +21,8 @@
/* NOTE: This file is autogenerated by pdbgen.pl */ /* NOTE: This file is autogenerated by pdbgen.pl */
#include "config.h"
#include "gimp.h" #include "gimp.h"
/** /**

View File

@ -19,6 +19,8 @@
* Boston, MA 02111-1307, USA. * Boston, MA 02111-1307, USA.
*/ */
#include "config.h"
#include <string.h> #include <string.h>
#include <glib.h> #include <glib.h>

View File

@ -21,6 +21,8 @@
/* NOTE: This file is autogenerated by pdbgen.pl */ /* NOTE: This file is autogenerated by pdbgen.pl */
#include "config.h"
#include "gimp.h" #include "gimp.h"
/** /**

View File

@ -17,6 +17,8 @@
* Boston, MA 02111-1307, USA. * Boston, MA 02111-1307, USA.
*/ */
#include "config.h"
#include "gimp.h" #include "gimp.h"
#include "gimpui.h" #include "gimpui.h"

View File

@ -21,6 +21,8 @@
/* NOTE: This file is autogenerated by pdbgen.pl */ /* NOTE: This file is autogenerated by pdbgen.pl */
#include "config.h"
#include "gimp.h" #include "gimp.h"
/** /**

View File

@ -21,6 +21,8 @@
/* NOTE: This file is autogenerated by pdbgen.pl */ /* NOTE: This file is autogenerated by pdbgen.pl */
#include "config.h"
#include "gimp.h" #include "gimp.h"
/** /**

View File

@ -64,32 +64,15 @@ G_BEGIN_DECLS
/* Square */ /* Square */
#define SQR(x) ((x) * (x)) #define SQR(x) ((x) * (x))
/* limit a (0->511) int to 255 */ /* Limit a (0->511) int to 255 */
#define MAX255(a) ((a) | (((a) & 256) - (((a) & 256) >> 8))) #define MAX255(a) ((a) | (((a) & 256) - (((a) & 256) >> 8)))
/* clamp a >>int32<<-range int between 0 and 255 inclusive */ /* Clamp a >>int32<<-range int between 0 and 255 inclusive */
/* broken! -> #define CLAMP0255(a) ((a & 0xFFFFFF00)? (~(a>>31)) : a) */
#define CLAMP0255(a) CLAMP(a,0,255) #define CLAMP0255(a) CLAMP(a,0,255)
#define gimp_deg_to_rad(angle) ((angle) * (2.0 * G_PI) / 360.0) #define gimp_deg_to_rad(angle) ((angle) * (2.0 * G_PI) / 360.0)
#define gimp_rad_to_deg(angle) ((angle) * 360.0 / (2.0 * G_PI)) #define gimp_rad_to_deg(angle) ((angle) * 360.0 / (2.0 * G_PI))
#ifdef HAVE_FINITE
#define FINITE(x) finite(x)
#else
#ifdef HAVE_ISFINITE
#define FINITE(x) isfinite(x)
#else
#ifdef G_OS_WIN32
#define FINITE(x) _finite(x)
#else
#ifdef __EMX__
#define FINITE(x) isfinite(x)
#endif /* __EMX__ */
#endif /* G_OS_WIN32 */
#endif /* HAVE_ISFINITE */
#endif /* HAVE_FINITE */
G_END_DECLS G_END_DECLS

View File

@ -20,6 +20,8 @@
* Boston, MA 02111-1307, USA. * Boston, MA 02111-1307, USA.
*/ */
#include "config.h"
#include <string.h> /* memcmp */ #include <string.h> /* memcmp */
#include <glib.h> #include <glib.h>

View File

@ -27,6 +27,8 @@
/* A little collection of useful vector stuff */ /* A little collection of useful vector stuff */
/**********************************************/ /**********************************************/
#include "config.h"
#include <glib.h> #include <glib.h>
#include "gimpmath.h" #include "gimpmath.h"

View File

@ -3,7 +3,7 @@
/* Modified by Tom Bech, 1996 */ /* Modified by Tom Bech, 1996 */
/************************************/ /************************************/
#include <gdk/gdk.h> #include "config.h"
#include <libgimp/gimp.h> #include <libgimp/gimp.h>

View File

@ -1,3 +1,6 @@
#include "config.h"
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>

View File

@ -1,3 +1,6 @@
#include "config.h"
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>

View File

@ -19,6 +19,8 @@
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/ */
#include "config.h"
#include <string.h> /* strlen */ #include <string.h> /* strlen */
#include <gdk/gdk.h> #include <gdk/gdk.h>

View File

@ -19,6 +19,8 @@
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/ */
#include "config.h"
#include <stdlib.h> #include <stdlib.h>
#include <stdio.h> #include <stdio.h>
#include <string.h> #include <string.h>

View File

@ -23,6 +23,8 @@
* *
*/ */
#include "config.h"
#include <string.h> #include <string.h>
#include "libgimp/gimp.h" #include "libgimp/gimp.h"

View File

@ -36,6 +36,8 @@
* *
*-----------------------------------------------------------------------------------*/ *-----------------------------------------------------------------------------------*/
#include "config.h"
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
#include <math.h> #include <math.h>

View File

@ -16,6 +16,8 @@ You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
#include "config.h"
#include <assert.h> #include <assert.h>
#include "types.h" #include "types.h"

View File

@ -29,15 +29,19 @@
* version 1.00.00; 1998/10/26 hof: 1.st (pre) release * version 1.00.00; 1998/10/26 hof: 1.st (pre) release
*/ */
#include "config.h"
#include <setjmp.h> #include <setjmp.h>
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
/* Include for External Libraries */ /* Include for External Libraries */
#include <jpeglib.h> #include <jpeglib.h>
/* GIMP includes */ /* GIMP includes */
#include "libgimp/gimp.h" #include "libgimp/gimp.h"
#include "xjpeg.h" #include "xjpeg.h"
extern int xjt_debug; extern int xjt_debug;

View File

@ -32,15 +32,17 @@
* version 1.01.00; 1998/11/22 hof: PDB-calls to load/save guides under GIMP 1.1 * version 1.01.00; 1998/11/22 hof: PDB-calls to load/save guides under GIMP 1.1
* version 1.00.00; 1998/10/31 hof: 1.st (pre) release * version 1.00.00; 1998/10/31 hof: 1.st (pre) release
*/ */
#include "config.h"
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
/* GIMP includes */ /* GIMP includes */
#include "libgimp/gimp.h" #include "libgimp/gimp.h"
#include "xjpeg.h"
/* #include "cursorutil.h" */ #include "xjpeg.h"
/* XJT includes */ /* XJT includes */
#include "xpdb_calls.h" #include "xpdb_calls.h"

View File

@ -596,6 +596,7 @@ HEADER
print CFILE $lgpl_top; print CFILE $lgpl_top;
print CFILE " * $cname\n"; print CFILE " * $cname\n";
print CFILE $lgpl_bottom; print CFILE $lgpl_bottom;
print CFILE qq/#include "config.h"\n\n/;
print CFILE $out->{headers}, "\n" if exists $out->{headers}; print CFILE $out->{headers}, "\n" if exists $out->{headers};
print CFILE qq/#include "gimp.h"\n/; print CFILE qq/#include "gimp.h"\n/;
print CFILE qq/#include "gimpprivate.h"\n/ if $privatevars; print CFILE qq/#include "gimpprivate.h"\n/ if $privatevars;

View File

@ -1289,6 +1289,24 @@ HELP
$invoke{code} = <<'CODE'; $invoke{code} = <<'CODE';
{ {
#ifdef HAVE_FINITE
#define FINITE(x) finite(x)
#else
#ifdef HAVE_ISFINITE
#define FINITE(x) isfinite(x)
#else
#ifdef G_OS_WIN32
#define FINITE(x) _finite(x)
#else
#ifdef __EMX__
#define FINITE(x) isfinite(x)
#else
#error "no FINITE() implementation available?!"
#endif /* __EMX__ */
#endif /* G_OS_WIN32 */
#endif /* HAVE_ISFINITE */
#endif /* HAVE_FINITE */
if (!FINITE (xresolution) || if (!FINITE (xresolution) ||
xresolution < GIMP_MIN_RESOLUTION || xresolution > GIMP_MAX_RESOLUTION || xresolution < GIMP_MIN_RESOLUTION || xresolution > GIMP_MAX_RESOLUTION ||
!FINITE (yresolution) || !FINITE (yresolution) ||