From: rnv Date: Mon, 25 Feb 2019 12:09:05 +0000 (+0300) Subject: Compilation on Windows. X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=e00d4db1bfef424802c514fdb690070947c7cb40;p=tools%2Fmedcoupling.git Compilation on Windows. --- diff --git a/src/MEDCoupling/MCType.hxx b/src/MEDCoupling/MCType.hxx index b0a03d3e4..c667a03c8 100644 --- a/src/MEDCoupling/MCType.hxx +++ b/src/MEDCoupling/MCType.hxx @@ -32,7 +32,11 @@ namespace MEDCoupling #else using mcIdType = std::int64_t; #endif +#ifdef WIN32 + inline mcIdType ToIdType(size_t val) { return mcIdType(val); } +#else inline mcIdType ToIdType(std::size_t val) { return mcIdType(val); } +#endif } #define DataArrayInt DataArrayInt32