From: ana Date: Tue, 3 Feb 2015 16:14:19 +0000 (+0300) Subject: Windows compatibility X-Git-Tag: V7_6_0a1~59 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=db29d7dbad0cb530163c599df2655e6002847437;p=modules%2Fgeom.git Windows compatibility --- diff --git a/src/GEOM/GEOM_Function.cxx b/src/GEOM/GEOM_Function.cxx index e96a3a52c..ab8e57fd6 100644 --- a/src/GEOM/GEOM_Function.cxx +++ b/src/GEOM/GEOM_Function.cxx @@ -982,7 +982,13 @@ void* GEOM_Function::GetCallBackData() if(!aChild.FindAttribute(TDataStd_Comment::GetID(), aComment)) return NULL; TCollection_AsciiString string( aComment->Get() ); - long long address = atoll( string.ToCString() ); + long long address; +#ifndef WIN32 + address = atoll ( string.ToCString() ); +#else + address = _strtoi64 ( string.ToCString(), NULL, 10 ); +#endif + return reinterpret_cast ( address ); }