X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=common%2FclitkPortability.h;h=1ab74f90fa056233b39cbd76f6c362d0cd0af417;hb=8b7357d079eaecb4cbbc3c0cf8f104aa4dce9b0a;hp=9f5bb1fd4742ac7a136864bf4f0bb117e5936176;hpb=0083c3fb2c66812489631c7551709d121de51625;p=clitk.git diff --git a/common/clitkPortability.h b/common/clitkPortability.h old mode 100755 new mode 100644 index 9f5bb1f..1ab74f9 --- a/common/clitkPortability.h +++ b/common/clitkPortability.h @@ -1,3 +1,20 @@ +/*========================================================================= + Program: vv http://www.creatis.insa-lyon.fr/rio/vv + + Authors belong to: + - University of LYON http://www.universite-lyon.fr/ + - Léon Bérard cancer center http://www.centreleonberard.fr + - CREATIS CNRS laboratory http://www.creatis.insa-lyon.fr + + This software is distributed WITHOUT ANY WARRANTY; without even + the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR + PURPOSE. See the copyright notices for more information. + + It is distributed under dual licence + + - BSD See included LICENSE.txt file + - CeCILL-B http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html +===========================================================================**/ #ifndef CLITKPORTABILITY_H #define CLITKPORTABILITY_H #if defined(WIN32) @@ -14,7 +31,7 @@ template int IsNormal(const T val) { #if defined(_MSC_VER) return _finite(val); -#elif defined(unix) +#else return std::isnormal(val); #endif }