]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
Compilation under Windows OS.
authorrnv <rnv@opencascade.com>
Fri, 22 Oct 2021 14:02:38 +0000 (17:02 +0300)
committerrnv <rnv@opencascade.com>
Fri, 22 Oct 2021 14:02:38 +0000 (17:02 +0300)
src/ArgvKeeper/ArgvKeeper.hxx

index ca540b641665731c2444a170bad0a8946efa63bd..804235424c103ff67628607dc27014554673b12c 100644 (file)
 //
 
 #pragma once
+
+#ifdef WIN32
+# if defined ARGVKEEPER_EXPORTS || defined ArgvKeeper_EXPORTS
+#  define ARGVKEEPER_EXPORT __declspec( dllexport )
+# else
+#  define ARGVKEEPER_EXPORT __declspec( dllimport )
+# endif
+#else
+# define UTILS_EXPORT
+#endif
+
 #include <string>
 #include <vector>
 
-void SetArgcArgv(int argc, char* argv[]);
-void SetArgcArgv(const std::vector<std::string>& argv);
-std::vector<std::string> GetArgcArgv();
-bool ArgcArgvInitialized();
+ARGVKEEPER_EXPORT void SetArgcArgv(int argc, char* argv[]);
+ARGVKEEPER_EXPORT void SetArgcArgv(const std::vector<std::string>& argv);
+ARGVKEEPER_EXPORT std::vector<std::string> GetArgcArgv();
+ARGVKEEPER_EXPORT bool ArgcArgvInitialized();