From db2119e80e8a9637a2382da830b5ed94e8ab294a Mon Sep 17 00:00:00 2001 From: ana Date: Fri, 2 Dec 2016 14:54:31 +0300 Subject: [PATCH] Windows compatibility for V8_2_BR --- CMakeLists.txt | 2 +- src/MEDCalc/cmp/MED.hxx | 16 ++++------------ src/MEDCalc/cmp/MEDCALC.hxx | 2 +- src/MEDCalc/cmp/MEDCalculator_i.hxx | 2 +- src/MEDCalc/cmp/MEDCommandsHistoryManager_i.hxx | 2 +- src/MEDCalc/cmp/MEDPresentationManager_i.hxx | 2 +- 6 files changed, 9 insertions(+), 17 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index b0e9d937d..cc9c953d9 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -37,7 +37,7 @@ SET(${PROJECT_NAME_UC}_MINOR_VERSION 2) SET(${PROJECT_NAME_UC}_PATCH_VERSION 0) SET(${PROJECT_NAME_UC}_VERSION ${${PROJECT_NAME_UC}_MAJOR_VERSION}.${${PROJECT_NAME_UC}_MINOR_VERSION}.${${PROJECT_NAME_UC}_PATCH_VERSION}) -SET(${PROJECT_NAME_UC}_VERSION_DEV 0) +SET(${PROJECT_NAME_UC}_VERSION_DEV 1) # Common CMake macros # =================== diff --git a/src/MEDCalc/cmp/MED.hxx b/src/MEDCalc/cmp/MED.hxx index 115e9e268..790b2f1a9 100644 --- a/src/MEDCalc/cmp/MED.hxx +++ b/src/MEDCalc/cmp/MED.hxx @@ -20,16 +20,6 @@ #ifndef _MED_HXX_ #define _MED_HXX_ -#ifdef WIN32 -# if defined MEDENGINE_EXPORTS || defined MEDEngine_EXPORTS -# define MEDENGINE_EXPORT __declspec( dllexport ) -# else -# define MEDENGINE_EXPORT __declspec( dllimport ) -# endif -#else -# define MEDENGINE_EXPORT -#endif - #include #include CORBA_SERVER_HEADER(MED_Gen) #include CORBA_SERVER_HEADER(MEDDataManager) @@ -40,7 +30,9 @@ #include #include -class MEDENGINE_EXPORT MED : +#include "MEDCALC.hxx" + +class MEDCALC_EXPORT MED : public POA_MED_ORB::MED_Gen, public Engines_Component_i { @@ -99,7 +91,7 @@ public: }; extern "C" -MEDENGINE_EXPORT +MEDCALC_EXPORT PortableServer::ObjectId* MEDEngine_factory( CORBA::ORB_ptr orb, PortableServer::POA_ptr poa, PortableServer::ObjectId* contId, diff --git a/src/MEDCalc/cmp/MEDCALC.hxx b/src/MEDCalc/cmp/MEDCALC.hxx index 3d716f015..dca83c706 100644 --- a/src/MEDCalc/cmp/MEDCALC.hxx +++ b/src/MEDCalc/cmp/MEDCALC.hxx @@ -21,7 +21,7 @@ #define __MEDCALC_HXX__ #ifdef WIN32 -# if defined MEDFactoryEngine_EXPORTS || defined MEDEngine_EXPORTS +# if defined MEDFactoryEngine_EXPORTS || defined MEDEngine_EXPORTS || defined MEDEngineCommon_EXPORTS # define MEDCALC_EXPORT __declspec( dllexport ) # else # define MEDCALC_EXPORT __declspec( dllimport ) diff --git a/src/MEDCalc/cmp/MEDCalculator_i.hxx b/src/MEDCalc/cmp/MEDCalculator_i.hxx index 1b43d1ab6..b0e9be8ef 100644 --- a/src/MEDCalc/cmp/MEDCalculator_i.hxx +++ b/src/MEDCalc/cmp/MEDCalculator_i.hxx @@ -56,7 +56,7 @@ public: // Other public functions (non available via CORBA) // =========================================================== // - static MEDCalculator_i * getInstance(); + MEDCALC_EXPORT static MEDCalculator_i * getInstance(); private: MEDCalculator_i(); diff --git a/src/MEDCalc/cmp/MEDCommandsHistoryManager_i.hxx b/src/MEDCalc/cmp/MEDCommandsHistoryManager_i.hxx index 279355317..d60788126 100644 --- a/src/MEDCalc/cmp/MEDCommandsHistoryManager_i.hxx +++ b/src/MEDCalc/cmp/MEDCommandsHistoryManager_i.hxx @@ -31,7 +31,7 @@ class MEDCommandsHistoryManager_i public SALOME::GenericObj_i { public: - static MEDCommandsHistoryManager_i* getInstance(); + MEDCALC_EXPORT static MEDCommandsHistoryManager_i* getInstance(); MEDCALC_EXPORT void addCommand(const char* command); MEDCALC_EXPORT MEDCALC::CommandsList* getCommandsHistory(); diff --git a/src/MEDCalc/cmp/MEDPresentationManager_i.hxx b/src/MEDCalc/cmp/MEDPresentationManager_i.hxx index cc2ae289e..e33f018c8 100644 --- a/src/MEDCalc/cmp/MEDPresentationManager_i.hxx +++ b/src/MEDCalc/cmp/MEDPresentationManager_i.hxx @@ -37,7 +37,7 @@ class MEDPresentationManager_i: public POA_MEDCALC::MEDPresentationManager, { public: - static MEDPresentationManager_i* getInstance(); + MEDCALC_EXPORT static MEDPresentationManager_i* getInstance(); MEDCALC_EXPORT MEDPresentation::TypeID makeMeshView(const MEDCALC::MeshViewParameters&, const MEDCALC::ViewModeType); MEDCALC_EXPORT MEDPresentation::TypeID makeScalarMap(const MEDCALC::ScalarMapParameters&, const MEDCALC::ViewModeType); -- 2.39.2