From 9ab3456b334558da55d4bf4338f801919caacadf Mon Sep 17 00:00:00 2001 From: Simon Rozman Date: Wed, 18 May 2016 09:06:54 +0200 Subject: [PATCH] WINSTD_API moved to forward-declaration area --- include/WinStd/Common.h | 26 ++++++++++++++------------ 1 file changed, 14 insertions(+), 12 deletions(-) diff --git a/include/WinStd/Common.h b/include/WinStd/Common.h index 9d96b354..99e3f26b 100644 --- a/include/WinStd/Common.h +++ b/include/WinStd/Common.h @@ -18,6 +18,20 @@ along with Setup. If not, see . */ +/// +/// Public function calling convention +/// +#ifndef WINSTD_API +#if defined(WINSTD_DLL) +#define WINSTD_API __declspec(dllexport) +#elif defined(WINSTD_DLLIMP) +#define WINSTD_API __declspec(dllimport) +#else +#define WINSTD_API +#endif +#endif + + #include #include @@ -117,18 +131,6 @@ namespace winstd #include -/// -/// Public function calling convention -/// -#if defined(WINSTD_DLL) -#define WINSTD_API __declspec(dllexport) -#elif defined(WINSTD_DLLIMP) -#define WINSTD_API __declspec(dllimport) -#else -#define WINSTD_API -#endif - - #ifndef WINSTD_STACK_BUFFER_BYTES /// /// Size of the stack buffer in bytes used for initial system function call