summaryrefslogtreecommitdiff
path: root/gnumake.h
diff options
context:
space:
mode:
authorPaul Smith <psmith@gnu.org>2013-09-30 00:12:36 -0400
committerPaul Smith <psmith@gnu.org>2013-09-30 00:12:36 -0400
commit6d483ec80baa551cad98d0c11958bbec0de45af9 (patch)
treec454ba5cffcdbc7776338277f7477ec548a5c68b /gnumake.h
parent020214045d21336913714e8f5917b06e734b58b4 (diff)
downloadmake-6d483ec80baa551cad98d0c11958bbec0de45af9.tar.gz
Fixes for building with MSVC.
Diffstat (limited to 'gnumake.h')
-rw-r--r--gnumake.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/gnumake.h b/gnumake.h
index 8c622b7f..dbf303b9 100644
--- a/gnumake.h
+++ b/gnumake.h
@@ -38,17 +38,17 @@ typedef struct
#endif
/* Free memory returned by the gmk_expand() function. */
-void GMK_EXPORT gmk_free (char *str);
+GMK_EXPORT void gmk_free (char *str);
/* Allocate memory in GNU make's context. */
-char * GMK_EXPORT gmk_alloc (unsigned int len);
+GMK_EXPORT char *gmk_alloc (unsigned int len);
/* Run $(eval ...) on the provided string BUFFER. */
-void GMK_EXPORT gmk_eval (const char *buffer, const gmk_floc *floc);
+GMK_EXPORT void gmk_eval (const char *buffer, const gmk_floc *floc);
/* Run GNU make expansion on the provided string STR.
Returns an allocated buffer that the caller must free with gmk_free(). */
-char * GMK_EXPORT gmk_expand (const char *str);
+GMK_EXPORT char *gmk_expand (const char *str);
/* Register a new GNU make function NAME (maximum of 255 chars long).
When the function is expanded in the makefile, FUNC will be invoked with
@@ -65,7 +65,7 @@ char * GMK_EXPORT gmk_expand (const char *str);
If EXPAND_ARGS is 0, the arguments to the function will not be expanded
before FUNC is called. If EXPAND_ARGS is non-0, they will be expanded.
*/
-void GMK_EXPORT gmk_add_function (const char *name,
+GMK_EXPORT void gmk_add_function (const char *name,
char *(*func)(const char *nm,
int argc, char **argv),
int min_args, int max_args, int expand_args);