1 /*=========================================================================
2 Program: vv http://www.creatis.insa-lyon.fr/rio/vv
5 - University of LYON http://www.universite-lyon.fr/
6 - Léon Bérard cancer center http://www.centreleonberard.fr
7 - CREATIS CNRS laboratory http://www.creatis.insa-lyon.fr
9 This software is distributed WITHOUT ANY WARRANTY; without even
10 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
11 PURPOSE. See the copyright notices for more information.
13 It is distributed under dual licence
15 - BSD See included LICENSE.txt file
16 - CeCILL-B http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html
17 ===========================================================================**/
18 #ifndef CLITKPORTABILITY_H
19 #define CLITKPORTABILITY_H
21 # define _USE_MATH_DEFINES //Before math.h include (i.e. cmath)
26 # define rint(x) floor(x+0.5)
27 # define lrint(x) (long)rint(x)
31 int IsNormal(const T val) {
35 return std::isnormal(val);
41 # define mkstemp(x) _mktemp_s(x, sizeof(x))
44 #endif /* end #define CLITKPORTABILITY_H */