diff options
author | Paul Smith <psmith@gnu.org> | 2013-09-29 13:45:25 -0400 |
---|---|---|
committer | Paul Smith <psmith@gnu.org> | 2013-09-30 00:12:36 -0400 |
commit | 1f4ca0539b32b3f80d5aff2f096e9aebbca5300d (patch) | |
tree | c454ba5cffcdbc7776338277f7477ec548a5c68b /gnumake.h | |
parent | d0944ee2e8705734c47371f3ec881ce9dae83411 (diff) | |
download | gunmake-1f4ca0539b32b3f80d5aff2f096e9aebbca5300d.tar.gz |
Fixes for building with MSVC.
Diffstat (limited to 'gnumake.h')
-rw-r--r-- | gnumake.h | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -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); |