From db29d7dbad0cb530163c599df2655e6002847437 Mon Sep 17 00:00:00 2001 From: ana Date: Tue, 3 Feb 2015 19:14:19 +0300 Subject: [PATCH] Windows compatibility --- src/GEOM/GEOM_Function.cxx | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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 ); } -- 2.39.2