From c8bd08f7fb001bae59a1647c84a9d506eb749714 Mon Sep 17 00:00:00 2001 From: Louis Gombert Date: Thu, 8 Aug 2024 21:36:59 +0000 Subject: [PATCH] Compile libmesh5 as C++ --- src/DriverGMF/CMakeLists.txt | 2 +- src/DriverGMF/{libmesh5.c => libmesh5.cxx} | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) rename src/DriverGMF/{libmesh5.c => libmesh5.cxx} (99%) diff --git a/src/DriverGMF/CMakeLists.txt b/src/DriverGMF/CMakeLists.txt index f21111175..b79f94b12 100644 --- a/src/DriverGMF/CMakeLists.txt +++ b/src/DriverGMF/CMakeLists.txt @@ -61,7 +61,7 @@ SET(MeshDriverGMF_SOURCES DriverGMF_Read.cxx DriverGMF_Write.cxx DriverGMF.cxx - libmesh5.c + libmesh5.cxx ) # --- rules --- diff --git a/src/DriverGMF/libmesh5.c b/src/DriverGMF/libmesh5.cxx similarity index 99% rename from src/DriverGMF/libmesh5.c rename to src/DriverGMF/libmesh5.cxx index 82586efb4..c2d69301e 100644 --- a/src/DriverGMF/libmesh5.c +++ b/src/DriverGMF/libmesh5.cxx @@ -217,7 +217,7 @@ int GmfOpenMesh(const char *FilNam, int mod, ...) break; } - if( !MshIdx || !(msh = calloc(1, sizeof(GmfMshSct))) ) + if( !MshIdx || !(msh = static_cast(calloc(1, sizeof(GmfMshSct)))) ) return(0); /* Copy the FilNam into the structure */