From 1f4ca0539b32b3f80d5aff2f096e9aebbca5300d Mon Sep 17 00:00:00 2001 From: Paul Smith Date: Sun, 29 Sep 2013 13:45:25 -0400 Subject: Fixes for building with MSVC. --- gnumake.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'gnumake.h') diff --git a/gnumake.h b/gnumake.h index 8c622b7..dbf303b 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); -- cgit v1.2.3