From f0529dacedf7da83f8d5107a8ca7d73f35560894 Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Mon, 6 May 2013 20:18:58 +0300 Subject: Rearrange dllimport/dllexport declarations for MS-Windows. gnumake.h (GMK_EXPORT) [_WIN32]: Move the dllexport declaration here from makeint.h. makeint.h (GMK_BUILDING_MAKE) [WINDOWS32]: Define before including gnumake.h. --- gnumake.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'gnumake.h') diff --git a/gnumake.h b/gnumake.h index 168f370..8c622b7 100644 --- a/gnumake.h +++ b/gnumake.h @@ -28,7 +28,9 @@ typedef struct #ifdef _WIN32 -# ifndef GMK_EXPORT +# ifdef GMK_BUILDING_MAKE +# define GMK_EXPORT __declspec(dllexport) +# else # define GMK_EXPORT __declspec(dllimport) # endif #else -- cgit v1.2.3