summaryrefslogtreecommitdiff
path: root/gnumake.h
diff options
context:
space:
mode:
authorEli Zaretskii <eliz@gnu.org>2013-05-06 20:18:58 +0300
committerEli Zaretskii <eliz@gnu.org>2013-05-06 20:18:58 +0300
commite4f28365c2c5727f300d5af7077e685605433acd (patch)
treea3aa2f614c6409aeac839882c0ef7d74c931aa19 /gnumake.h
parent080206368f2201df37d607013b14fb5d843ac555 (diff)
downloadmake-e4f28365c2c5727f300d5af7077e685605433acd.tar.gz
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.
Diffstat (limited to 'gnumake.h')
-rw-r--r--gnumake.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/gnumake.h b/gnumake.h
index 168f3708..8c622b7f 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