WINSTD_API moved to forward-declaration area

This commit is contained in:
Simon Rozman 2016-05-18 09:06:54 +02:00
parent 8b552a01b0
commit 9ab3456b33

View File

@ -18,6 +18,20 @@
along with Setup. If not, see <http://www.gnu.org/licenses/>.
*/
///
/// 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 <Windows.h>
#include <stdarg.h>
@ -117,18 +131,6 @@ namespace winstd
#include <vector>
///
/// 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