* Source/NSDecimalNumber.m: (isinf,isnan,isinff,isnanf):

Temporary empty definitions of C99 macros for environments
	which do not define them.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@25669 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
David Ayers 2007-12-03 18:35:16 +00:00
parent f10ebd138c
commit ba79ae1106
2 changed files with 21 additions and 0 deletions

View file

@ -1,3 +1,9 @@
2007-12-03 David Ayers <ayers@fsfe.org>
* Source/NSDecimalNumber.m: (isinf,isnan,isinff,isnanf):
Temporary empty definitions of C99 macros for environments
which do not define them.
2007-12-03 Fred Kiefer <FredKiefer@gmx.de>
* Source/NSIndexSet.m (-initWithCoder:, -encodeWithCoder)

View file

@ -37,6 +37,21 @@
#include "GSPrivate.h"
// AYERS: Temporary workaround until correct flags/includes for other
// libc implemenatations can be identified.
#ifndef isinf
#define isinf(n) ( 0 )
#endif
#ifndef isnan
#define isnan(n) ( 0 )
#endif
#ifndef isinff
#define isinff(n) ( 0 )
#endif
#ifndef isnanf
#define isnanf(n) ( 0 )
#endif
// shared default behavior for NSDecimalNumber class
static NSDecimalNumberHandler *handler;