Salome HOME
Windows compatibility
authorana <ana@opencascade.com>
Wed, 17 Jun 2015 17:05:12 +0000 (20:05 +0300)
committerana <ana@opencascade.com>
Wed, 17 Jun 2015 17:05:12 +0000 (20:05 +0300)
src/evalyfx/YACSEvalPort.cxx
src/evalyfx/YACSEvalResource.hxx
src/evalyfx/YACSEvalSession.hxx
src/evalyfx/YACSEvalYFXExport.hxx
src/evalyfx/YACSEvalYFXPattern.hxx

index f8a99e0d191b9a820309bd49e98407100f89c829..86cd5dfc1b4aef1df754b69292328dd71dd454a8 100644 (file)
@@ -222,7 +222,7 @@ void YACSEvalInputPort::setDefaultValue(const YACSEvalAny *parameter)
           if(par0)
             v<<=par0->toDouble();
           else if(par1)
-            v<<=par1->toInt();
+            v<<=(CORBA::Short)par1->toInt();
           else
             throw YACS::Exception("YACSEvalInputPort::setDefaultValueDefined : unmanaged types different from int and double for corbaport !");
           i2->put(&v);
index 344d7648827d73c279b7a08866c94e30cf1912c3..4eee308fc2cac600eb74374ea60dda9ce3cdc89a 100644 (file)
 #include <string>
 #include <vector>
 
+#ifdef WIN32
+#define NOMINMAX
+#endif
+
 namespace YACS
 {
   namespace ENGINE
@@ -78,15 +82,15 @@ private:
   unsigned int getValueOfKeyUInt(const char *key) const;
   std::map<std::string,std::string> listOfPropertiesInYACSContainer() const;
 public:
-  YACSEVALYFX_EXPORT static const char CONTAINER_NAME_KEY[];
-  YACSEVALYFX_EXPORT static const char CPU_CLOCK_KEY[];
-  YACSEVALYFX_EXPORT static const char HOSTNAME_KEY[];
-  YACSEVALYFX_EXPORT static const char MEM_KEY[];
-  YACSEVALYFX_EXPORT static const char NB_NODE_KEY[];
-  YACSEVALYFX_EXPORT static const char NB_PROC_PER_NODE_KEY[];
-  YACSEVALYFX_EXPORT static const char NB_RESOURCE_PROCS_KEY[];
-  YACSEVALYFX_EXPORT static const char POLICY_KEY[];
-  YACSEVALYFX_EXPORT static const char OS_KEY[];
+  static const char CONTAINER_NAME_KEY[];
+  static const char CPU_CLOCK_KEY[];
+  static const char HOSTNAME_KEY[];
+  static const char MEM_KEY[];
+  static const char NB_NODE_KEY[];
+  static const char NB_PROC_PER_NODE_KEY[];
+  static const char NB_RESOURCE_PROCS_KEY[];
+  static const char POLICY_KEY[];
+  static const char OS_KEY[];
 private:
   std::string _chosenHost;
   //! list of properties that overloads.
index ba62b76c76f3e57316ee1a5cb37454b07d281fdc..9d0d2c3a60995bc01bcad9aee15a2b485dc54b14 100644 (file)
@@ -41,8 +41,8 @@ public:
 private:
   static std::string GetPathToAdd();
 public:
-  YACSEVALYFX_EXPORT static const char KERNEL_ROOT_DIR[];
-  YACSEVALYFX_EXPORT static const char CORBA_CONFIG_ENV_VAR_NAME[];
+  static const char KERNEL_ROOT_DIR[];
+  static const char CORBA_CONFIG_ENV_VAR_NAME[];
 private:
   bool _isLaunched;
   int _port;
index 3ef78fd70f2492f622e89d657ea9bc04bd3bdb6a..cf7f127a90554c773478f9cc0819d1aa097ae148 100644 (file)
@@ -22,7 +22,7 @@
 #define __YACSEVALYFXEXPORT_HXX__
 
 #ifdef WIN32
-#  if defined YACSEVALYFX_EXPORTS
+#  if defined YACSevalYFX_EXPORTS
 #    define YACSEVALYFX_EXPORT __declspec( dllexport )
 #  else
 #    define YACSEVALYFX_EXPORT __declspec( dllimport )
index 2e2a9ca75b3c0cd781927ba161db9b4bdf196e12..110f22b9017123ab20b6052db658443eb0308dda 100644 (file)
 
 #include <vector>
 
+#ifdef WIN32
+#define NOMINMAX
+#endif
+
 namespace YACS
 {
   namespace ENGINE