From: rnv Date: Fri, 22 Oct 2021 14:02:38 +0000 (+0300) Subject: Compilation under Windows OS. X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=5867d3b125dea8d3229ff8ada8d896f5821dd569;p=modules%2Fkernel.git Compilation under Windows OS. --- diff --git a/src/ArgvKeeper/ArgvKeeper.hxx b/src/ArgvKeeper/ArgvKeeper.hxx index ca540b641..804235424 100644 --- a/src/ArgvKeeper/ArgvKeeper.hxx +++ b/src/ArgvKeeper/ArgvKeeper.hxx @@ -18,10 +18,21 @@ // #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 #include -void SetArgcArgv(int argc, char* argv[]); -void SetArgcArgv(const std::vector& argv); -std::vector GetArgcArgv(); -bool ArgcArgvInitialized(); +ARGVKEEPER_EXPORT void SetArgcArgv(int argc, char* argv[]); +ARGVKEEPER_EXPORT void SetArgcArgv(const std::vector& argv); +ARGVKEEPER_EXPORT std::vector GetArgcArgv(); +ARGVKEEPER_EXPORT bool ArgcArgvInitialized();