X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=common%2FclitkCommon.h;h=8cd82fbe0b0bc1b20f38876368f0d6348615b1a9;hb=095918eb5242d8f92e2e53b6a226ddf519512bd8;hp=11a6255955e8b2185c25b49334bd64158d58a8dc;hpb=1561fae3bf0756ba34e222cd1f189aac0087c62a;p=clitk.git diff --git a/common/clitkCommon.h b/common/clitkCommon.h index 11a6255..8cd82fb 100644 --- a/common/clitkCommon.h +++ b/common/clitkCommon.h @@ -38,15 +38,9 @@ #if defined(unix) || defined(__APPLE__) # include # include -#elif defined(WIN32) +#elif defined(_WIN32) # include -#endif - -#if ITK_VERSION_MAJOR < 4 -namespace itk -{ - typedef unsigned int ThreadIdType; -} +# include #endif //-------------------------------------------------------------------- @@ -241,6 +235,11 @@ namespace clitk { template void MapToVecSecond(const M & m, V & v); + //-------------------------------------------------------------------- + // Find/replace string + template + int inline findAndReplace(T& source, const T& find, const T& replace); + #include "clitkCommon.txx" } // end namespace