From: Nicolas RECHATIN Date: Thu, 5 Jan 2023 10:03:54 +0000 (+0100) Subject: 9.9 ub22 fix on fopen X-Git-Tag: OPERA_v0.6-s990~7 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=84013052f508dca34b0307fa7e8293948df92103;p=modules%2Fshaper.git 9.9 ub22 fix on fopen --- diff --git a/src/ModelHighAPI/ModelHighAPI_Tools.cpp b/src/ModelHighAPI/ModelHighAPI_Tools.cpp index 65f536b38..16cfb9961 100644 --- a/src/ModelHighAPI/ModelHighAPI_Tools.cpp +++ b/src/ModelHighAPI/ModelHighAPI_Tools.cpp @@ -559,7 +559,7 @@ static bool checkDump(SessionPtr theSession, // execute the dumped PyGILState_STATE gstate = PyGILState_Ensure(); /* acquire python thread */ static char aReadMode[] = "r"; - FILE* PyFileObject = _Py_fopen(theFilename, aReadMode); + FILE *PyFileObject = fopen(theFilename, aReadMode); PyRun_SimpleFileEx(PyFileObject, theFilename, 1); PyGILState_Release(gstate); /* release python thread */