From 184e55bf08d398092e073a2b1e7acc45b7431140 Mon Sep 17 00:00:00 2001 From: abd Date: Tue, 4 Apr 2006 08:29:25 +0000 Subject: [PATCH] Adapt Export/Import functions for plugins --- resources/ImportExport | 12 ++++++------ src/GEOMImpl/GEOMImpl_IInsertOperations.cxx | 7 ++++++- 2 files changed, 12 insertions(+), 7 deletions(-) diff --git a/resources/ImportExport b/resources/ImportExport index 574e0e2e3..15bf9c78c 100644 --- a/resources/ImportExport +++ b/resources/ImportExport @@ -1,14 +1,14 @@ Import: BREP|IGES|STEP Export: BREP|IGES|STEP -BREP.Import: libBREPImport.so -BREP.Export: libBREPExport.so +BREP.Import: libBREPImport +BREP.Export: libBREPExport BREP.Pattern: BREP Files ( *.brep ) -IGES.Import: libIGESImport.so -IGES.Export: libIGESExport.so +IGES.Import: libIGESImport +IGES.Export: libIGESExport IGES.Pattern: IGES Files ( *.iges *.igs ) -STEP.Import: libSTEPImport.so -STEP.Export: libSTEPExport.so +STEP.Import: libSTEPImport +STEP.Export: libSTEPExport STEP.Pattern: STEP Files ( *.step *.stp ) diff --git a/src/GEOMImpl/GEOMImpl_IInsertOperations.cxx b/src/GEOMImpl/GEOMImpl_IInsertOperations.cxx index 6aee3f044..8e12231cf 100644 --- a/src/GEOMImpl/GEOMImpl_IInsertOperations.cxx +++ b/src/GEOMImpl/GEOMImpl_IInsertOperations.cxx @@ -352,7 +352,12 @@ Standard_Boolean GEOMImpl_IInsertOperations::IsSupported aKey += "."; aKey += aMode; if (myResMgr->Find(aKey.ToCString())) { - TCollection_AsciiString aLibName (myResMgr->Value(aKey.ToCString())); + TCollection_AsciiString aLibName (myResMgr->Value(aKey.ToCString())); +#ifndef WNT + aLibName += ".so"; +#else + aLibName += ".dll"; +#endif theLibName = new TCollection_HAsciiString (aLibName); return Standard_True; } -- 2.39.2