summaryrefslogtreecommitdiffstats
path: root/src/isinf.h
blob: 5893393f0026c8962584f523394ea689529b1fe0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#ifndef __ISINF_H__
#define __ISINF_H__

/*
 * Fix for missing std::isnormal with SOLARIS8/GCC3.2
 */
 
#if defined (SOLARIS_2_8) && __GNUC__ == 3 && __GNUC_MINOR__ == 2

	#include <ieeefp.h>
	#define isinf(x) ((fpclass(x) == FP_NINF) || (fpclass(x) == FP_PINF))
	
#endif

#endif /* __ISINF_H__ */