]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
Win32 Porting.
authorabd <abd@opencascade.com>
Fri, 3 Oct 2008 09:09:31 +0000 (09:09 +0000)
committerabd <abd@opencascade.com>
Fri, 3 Oct 2008 09:09:31 +0000 (09:09 +0000)
Correction of Export/Import defines for Win32 platform.
Using WIN32 standard define instead WNT define of OpenCascade library.

src/Batch_SWIG/libBatch_Swig.i
src/Communication/SALOMEMultiComm.cxx
src/Communication/SALOME_Comm_i.cxx
src/Communication/SALOME_Comm_i.hxx
src/Communication/SALOME_Communication.hxx

index 255d107dcca597d00e2030c5ea2d42fffe852c5f..4bf0acae6b026fff5acf1f6d9e99293fb62500b6 100644 (file)
@@ -51,6 +51,7 @@
 %include libBatch_Swig_exception.i
 
 %{
+#include "Batch_Defines.hxx"
 #include "Batch_Job.hxx"
 #include "Batch_JobId.hxx"
 #include "Batch_JobInfo.hxx"
@@ -61,6 +62,7 @@
 %}
 
 /* Les classes exportees en Python */
+%include Batch_Defines.hxx
 %include Batch_Job.hxx
 %include Batch_JobId.hxx
 %include Batch_JobInfo.hxx
index 823639296a473366c7652a73647d13d199d4dd7b..31e3f1efe0125992e3cb48cb58885a69dc67c777 100644 (file)
@@ -18,9 +18,7 @@
 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
 //
 #include "SALOMEMultiComm.hxx"
-#ifndef WNT
 using namespace std;
-#endif
 
 SALOMEMultiComm::SALOMEMultiComm():_type(SALOME::CORBA_)
 {
index 02f7e68fd60b349b7a27d01f0882951baf6ff148..1aeed449c5c9157555090fd6229050f3084e0393 100644 (file)
@@ -18,7 +18,7 @@
 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
 //
 #include "SALOME_Comm_i.hxx"
-#ifndef WNT
+#ifndef WIN32
 #include <rpc/xdr.h>
 #endif
 #include "omniORB4/poa.h"
@@ -30,7 +30,7 @@
 #include "SenderFactory.hxx"
 using namespace std;
 
-#ifndef WNT
+#ifndef WIN32
 CORBA::ORB_var &getGlobalORB(){
   ORB_INIT &init = *SINGLETON_<ORB_INIT>::Instance();
   CORBA::ORB_var &orb = init(0,0);
index 6664fc4c08bbadaef10c0fdd049ee073b96966f7..6de8d596cd8f3e270c635cbd3e091428569ef947 100644 (file)
@@ -130,7 +130,7 @@ public:
   ~SALOME_CorbaLongCSender_i();
   CORBA::ULong getSize();
   SALOME::vectorOfLong* sendPart(CORBA::ULong offset, CORBA::ULong length);
-#ifndef WNT
+#ifndef WIN32
   SALOME::CorbaLongCSender_ptr _this();
 #endif
 };
@@ -161,7 +161,7 @@ private:
   /*! Type the component of the array*/
   SALOME::TypeOfDataTransmitted _type;
 public:
-  SALOME_MPISender_i(const void *tabToSend,long lgrTabToSend,int sizeOf,bool ownTabToSend=false);
+  SALOME_MPISender_i(const void *tabToSend,long lgrTabToSend,int sizeOf,bool owntabToSend=false);
   ~SALOME_MPISender_i();
   SALOME::MPISender::param* getParam();
   void send();
@@ -175,7 +175,7 @@ class COMMUNICATION_EXPORT SALOME_MPISenderDouble_i : public POA_SALOME::MPISend
                                 public SALOME_MPISender_i
 {
 public:
-  SALOME_MPISenderDouble_i(const double *tabToSend,long lgrTabToSend,bool ownTabToSend=false);
+  SALOME_MPISenderDouble_i(const double *tabToSend,long lgrTabToSend,bool oWNTabToSend=false);
 };
 
 class COMMUNICATION_EXPORT SALOME_MPISenderInt_i : public POA_SALOME::MPISenderInt,
@@ -183,7 +183,7 @@ class COMMUNICATION_EXPORT SALOME_MPISenderInt_i : public POA_SALOME::MPISenderI
                              public SALOME_MPISender_i
 {
 public:
-  SALOME_MPISenderInt_i(const int *tabToSend,long lgrTabToSend,bool ownTabToSend=false);
+  SALOME_MPISenderInt_i(const int *tabToSend,long lgrTabToSend,bool owntabToSend=false);
 };
 
 #endif
@@ -206,7 +206,7 @@ private:
   /*! Type the component of the array*/
   SALOME::TypeOfDataTransmitted _type;
 public:
-  SALOME_SocketSender_i(const void *tabToSend,long lgrTabToSend,int sizeOf,bool ownTabToSend=false);
+  SALOME_SocketSender_i(const void *tabToSend,long lgrTabToSend,int sizeOf,bool owntabToSend=false);
   ~SALOME_SocketSender_i();
   SALOME::SocketSender::param* getParam();
   void send();
@@ -224,7 +224,7 @@ class COMMUNICATION_EXPORT SALOME_SocketSenderDouble_i : public POA_SALOME::Sock
                                    public SALOME_SocketSender_i
 {
 public:
-  SALOME_SocketSenderDouble_i(const double *tabToSend,long lgrTabToSend,bool ownTabToSend=false);
+  SALOME_SocketSenderDouble_i(const double *tabToSend,long lgrTabToSend,bool owntabToSend=false);
 };
 
 class COMMUNICATION_EXPORT SALOME_SocketSenderInt_i : public POA_SALOME::SocketSenderInt,
@@ -232,7 +232,7 @@ class COMMUNICATION_EXPORT SALOME_SocketSenderInt_i : public POA_SALOME::SocketS
                                 public SALOME_SocketSender_i
 {
 public:
-  SALOME_SocketSenderInt_i(const int *tabToSend,long lgrTabToSend,bool ownTabToSend=false);
+  SALOME_SocketSenderInt_i(const int *tabToSend,long lgrTabToSend,bool owntabToSend=false);
 };
 
 #endif
index 93c11cc563be38ab210c3e739453d68e9df0e91d..bc92ee00cc7fd779e9af364263e2d4a792a475e3 100755 (executable)
 #ifndef _SALOME_COMMIUNICATION_HXX_
 #define _SALOME_COMMIUNICATION_HXX_
 
-#ifdef WNT
- #if defined COMMUNICATION_EXPORTS
-  #if defined WIN32
-   #define COMMUNICATION_EXPORT __declspec( dllexport )
-  #else
-   #define COMMUNICATION_EXPORT
-  #endif
- #else
-  #if defined WIN32
-   #define COMMUNICATION_EXPORT __declspec( dllimport )
-  #else
-   #define COMMUNICATION_EXPORT
-  #endif
- #endif
+#ifdef WIN32
+# ifdef COMMUNICATION_EXPORTS
+#  define COMMUNICATION_EXPORT __declspec( dllexport )
+# else
+#  define COMMUNICATION_EXPORT __declspec( dllimport )
+# endif
 #else
- #define COMMUNICATION_EXPORT
+define COMMUNICATION_EXPORT
 #endif
 
 #endif