From: rnv Date: Wed, 29 Aug 2018 11:47:10 +0000 (+0300) Subject: SALOME 9.1.0 Windows version X-Git-Tag: V9_1_0~3 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=143958a7c3b8efc077df519fe6c195d064080c47;p=modules%2Fparavis.git SALOME 9.1.0 Windows version --- diff --git a/src/Plugins/MEDWriter/IO/VTKToMEDMem.hxx b/src/Plugins/MEDWriter/IO/VTKToMEDMem.hxx index 5a0def7d..735b9f7e 100644 --- a/src/Plugins/MEDWriter/IO/VTKToMEDMem.hxx +++ b/src/Plugins/MEDWriter/IO/VTKToMEDMem.hxx @@ -21,6 +21,8 @@ #ifndef __VTKTOMEDMEM_HXX__ #define __VTKTOMEDMEM_HXX__ +#include "vtkSystemIncludes.h" //needed for exports + #include "MEDFileMesh.hxx" #include "MEDFileField.hxx" #include "MEDFileData.hxx" @@ -38,7 +40,7 @@ class vtkDataSet; -class MZCException : public std::exception +class VTK_EXPORT MZCException : public std::exception { public: MZCException(const std::string& s):_reason(s) { } @@ -50,7 +52,7 @@ private: namespace VTKToMEDMem { - class Grp + class VTK_EXPORT Grp { public: Grp(const std::string& name):_name(name) { } @@ -62,7 +64,7 @@ namespace VTKToMEDMem std::vector _fams; }; - class Fam + class VTK_EXPORT Fam { public: Fam(const std::string& name); @@ -76,11 +78,11 @@ namespace VTKToMEDMem class vtkDataObject; -void WriteMEDFileFromVTKDataSet(MEDCoupling::MEDFileData *mfd, vtkDataSet *ds, const std::vector& context, double timeStep, int tsId); +void VTK_EXPORT WriteMEDFileFromVTKDataSet(MEDCoupling::MEDFileData *mfd, vtkDataSet *ds, const std::vector& context, double timeStep, int tsId); -void WriteMEDFileFromVTKGDS(MEDCoupling::MEDFileData *mfd, vtkDataObject *input, double timeStep, int tsId); +void VTK_EXPORT WriteMEDFileFromVTKGDS(MEDCoupling::MEDFileData *mfd, vtkDataObject *input, double timeStep, int tsId); -void PutFamGrpInfoIfAny(MEDCoupling::MEDFileData *mfd, const std::string& meshName, const std::vector& groups, const std::vector& fams); +void VTK_EXPORT PutFamGrpInfoIfAny(MEDCoupling::MEDFileData *mfd, const std::string& meshName, const std::vector& groups, const std::vector& fams); #endif diff --git a/src/Plugins/MEDWriter/IO/vtkMEDWriter.h b/src/Plugins/MEDWriter/IO/vtkMEDWriter.h index 9f9432d4..8cc663c2 100644 --- a/src/Plugins/MEDWriter/IO/vtkMEDWriter.h +++ b/src/Plugins/MEDWriter/IO/vtkMEDWriter.h @@ -21,7 +21,6 @@ #ifndef vtkMEDWriter_h__ #define vtkMEDWriter_h__ -#include "vtkPVVTKExtensionsDefaultModule.h" //needed for exports #include "vtkDataObjectAlgorithm.h" class vtkMutableDirectedGraph; diff --git a/src/Plugins/ParaMEDCorba/VTKMEDCouplingMultiFieldsClient.cxx b/src/Plugins/ParaMEDCorba/VTKMEDCouplingMultiFieldsClient.cxx index d89f16ee..485026ca 100644 --- a/src/Plugins/ParaMEDCorba/VTKMEDCouplingMultiFieldsClient.cxx +++ b/src/Plugins/ParaMEDCorba/VTKMEDCouplingMultiFieldsClient.cxx @@ -18,6 +18,9 @@ // // To access to vtkUnstructuredGrid::Faces and FaceLocations +#ifdef WIN32 +#define _ALLOW_KEYWORD_MACROS +#endif #define protected public #include "VTKMEDCouplingMultiFieldsClient.hxx" diff --git a/src/Plugins/SimpleMode/IO/vtkSimpleMode.cxx b/src/Plugins/SimpleMode/IO/vtkSimpleMode.cxx index d6bd567f..502ed67d 100644 --- a/src/Plugins/SimpleMode/IO/vtkSimpleMode.cxx +++ b/src/Plugins/SimpleMode/IO/vtkSimpleMode.cxx @@ -60,6 +60,7 @@ #ifdef WIN32 #define _USE_MATH_DEFINES #include +#include #endif #include