Compile libmesh5 as C++

This commit is contained in:
Louis Gombert 2024-08-08 21:36:59 +00:00
parent 7a70a55209
commit c8bd08f7fb
2 changed files with 2 additions and 2 deletions

View File

@ -61,7 +61,7 @@ SET(MeshDriverGMF_SOURCES
DriverGMF_Read.cxx DriverGMF_Read.cxx
DriverGMF_Write.cxx DriverGMF_Write.cxx
DriverGMF.cxx DriverGMF.cxx
libmesh5.c libmesh5.cxx
) )
# --- rules --- # --- rules ---

View File

@ -217,7 +217,7 @@ int GmfOpenMesh(const char *FilNam, int mod, ...)
break; break;
} }
if( !MshIdx || !(msh = calloc(1, sizeof(GmfMshSct))) ) if( !MshIdx || !(msh = static_cast<GmfMshSct*>(calloc(1, sizeof(GmfMshSct)))) )
return(0); return(0);
/* Copy the FilNam into the structure */ /* Copy the FilNam into the structure */