summaryrefslogtreecommitdiff
path: root/gnumake.h
diff options
context:
space:
mode:
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 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