summaryrefslogtreecommitdiff
path: root/makeint.h
diff options
context:
space:
mode:
authorPaul Smith <psmith@gnu.org>2013-05-04 17:38:53 -0400
committerPaul Smith <psmith@gnu.org>2013-05-04 17:38:53 -0400
commit3484c9675a8a09904e08e00bf6842d834cd0201d (patch)
treeac9c0c1179e567213ed25f3161b64fc0254e24c7 /makeint.h
parenta0c5d0c63f6801ca16865d04faa223cea440d2c0 (diff)
downloadgunmake-3484c9675a8a09904e08e00bf6842d834cd0201d.tar.gz
Add memory allocation cleanup to loadable objects.
Add gmk_alloc() and gmk_free() functions so loadable objects can access our memory model. Also provide a more extensive example in the manual.
Diffstat (limited to 'makeint.h')
-rw-r--r--makeint.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/makeint.h b/makeint.h
index 9f0d1b8..6cce848 100644
--- a/makeint.h
+++ b/makeint.h
@@ -49,11 +49,12 @@ char *alloca ();
/* Include the externally-visible content.
Be sure to use the local one, and not one installed on the system.
- Define MAIN for proper selection of dllexport/dllimport declarations
+ Define GMK_EXPORT for proper selection of dllexport/dllimport declarations
for MS-Windows. */
-#define MAIN
+#ifdef WINDOWS32
+# define GMK_EXPORT __declspec(dllexport)
+#endif
#include "gnumake.h"
-#undef MAIN
#ifdef CRAY
/* This must happen before #include <signal.h> so