]> Creatis software - clitk.git/blobdiff - common/clitkCommon.h
Moved from repository clitk.private to tools
[clitk.git] / common / clitkCommon.h
index 769ca63f0bf4400cbb783cf53d3bd7b44b3fc293..2f5b26f1173b3e5e94999816031695c13cb2afc4 100644 (file)
 #if defined(unix) || defined(__APPLE__)
 #  include <sys/time.h>
 #  include <sys/resource.h>
-#elif defined(WIN32)
+#elif defined(_WIN32)
 #  include <windows.h>
+#  include <stdint.h>
 #endif
 
+#define VTK_EXCLUDE_STRSTREAM_HEADERS
+
 //--------------------------------------------------------------------
 namespace clitk {
 
@@ -234,6 +237,11 @@ namespace clitk {
   template <typename M, typename V> 
   void MapToVecSecond(const M & m, V & v);
 
+  //--------------------------------------------------------------------
+  // Find/replace string
+  template<class T>
+  int inline findAndReplace(T& source, const T& find, const T& replace);
+
 #include "clitkCommon.txx"
 
 } // end namespace