Mobile API Reference  MicroStrategy 2019
PDCfloat.h
Go to the documentation of this file.
1 //==============================================================================================
2 // FILENAME : PDCfloat.h
3 // AUTHOR : Perl Script
4 // CREATION : 6/13/02
5 // Copyright (C) MicroStrategy, Inc. 2002
6 //==============================================================================================
7 #ifndef PDCfloat_h
8 #define PDCfloat_h
9 
10 // this must be the *first* file included
11 #include "ProtectedSource/Prolog.h"
12 
13 #include <float.h>
14 
15 #ifdef WIN32
16 inline int isnan(double dsrc)
17 {
18  return ::_isnan(dsrc);
19 }
20 
21 inline int finite(double dsrc)
22 {
23  return ::_finite(dsrc);
24 }
25 #endif // WIN32
26 
27 #if defined(sun)
28 #include <ieeefp.h>
29 #endif // sun
30 
31 // 2004-08-27 vovechkin
32 // TODO: _finite in Kernel/SourceCode/MsiGraph/PrivateSource/GraphGenImpl.cpp
33 #ifndef WIN32
34 
35 #include <math.h> // yluo: this is needed for finite().
36 
37 #define _finite finite
38 
39 #ifdef __hpux
40  #define finite isfinite
41 #endif
42 
43 #endif
44 
45 // this must be the *last* file included
46 #include "ProtectedSource/Epilog.h"
47 
48 #endif // PDCfloat_h
#define _finite
Definition: PDCfloat.h:37