fix crash when copy'ing latent plugins
[ardour.git] / libs / qm-dsp / maths / nan-inf.h
1
2 #ifndef NAN_INF_H
3 #define NAN_INF_H
4
5 #include <math.h>
6
7 #ifdef sun
8
9 #include <ieeefp.h>
10 #define ISNAN(x) ((sizeof(x)==sizeof(float))?isnanf(x):isnand(x))
11 #define ISINF(x) (!finite(x))
12
13 #else
14
15 #define ISNAN(x) isnan(x)
16 #define ISINF(x) isinf(x)
17
18 #endif
19
20 #endif