From cada9df21482aa4aa99763ec29bd2e979a77c64b Mon Sep 17 00:00:00 2001 From: Michel Selten Date: Sun, 15 Jun 2003 13:14:45 +0000 Subject: [PATCH] * Fixed compilation error. FP_INFINITE needs to be defined _after_ all header files are included. --- source/blender/python/api2_2x/Metaball.c | 4 ++++ source/blender/python/api2_2x/Metaball.h | 4 ---- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/source/blender/python/api2_2x/Metaball.c b/source/blender/python/api2_2x/Metaball.c index 66a4e4d6acc..9d4ff483e4f 100644 --- a/source/blender/python/api2_2x/Metaball.c +++ b/source/blender/python/api2_2x/Metaball.c @@ -31,6 +31,10 @@ #include "Metaball.h" +#ifndef FP_INFINITE +#define FP_INFINITE 1 +#endif + /*****************************************************************************/ /* Function: M_Metaball_New */ /* Python equivalent: Blender.Metaball.New */ diff --git a/source/blender/python/api2_2x/Metaball.h b/source/blender/python/api2_2x/Metaball.h index 3fc5ddb6623..c79406862bd 100644 --- a/source/blender/python/api2_2x/Metaball.h +++ b/source/blender/python/api2_2x/Metaball.h @@ -32,10 +32,6 @@ #ifndef EXPP_METABALL_H #define EXPP_METABALL_H -#if !defined (FP_INFINITE) - #define FP_INFINITE 1 -#endif - #include #include