From 5867d3b125dea8d3229ff8ada8d896f5821dd569 Mon Sep 17 00:00:00 2001 From: rnv Date: Fri, 22 Oct 2021 17:02:38 +0300 Subject: [PATCH] Compilation under Windows OS. --- src/ArgvKeeper/ArgvKeeper.hxx | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) 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(); -- 2.39.2