X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=common%2FclitkCommon.h;h=8cd82fbe0b0bc1b20f38876368f0d6348615b1a9;hb=9ad40998f59e733989f28f05bed0299979848638;hp=11a6255955e8b2185c25b49334bd64158d58a8dc;hpb=a6957c4825e83c61b977ec316dd841878617ffbd;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