From d824e5d271d264d4709fabca8fa9d3dfe40e9e25 Mon Sep 17 00:00:00 2001 From: Neil Mclean Date: Wed, 18 Jul 2012 01:06:29 +0100 Subject: [PATCH] Win32 gcc compiler warning fix. Added util.h prototype for stpcpy(). --- util.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/util.h b/util.h index ad332a0..188f3e4 100644 --- a/util.h +++ b/util.h @@ -12,6 +12,9 @@ #define __sync_fetch_and_add(ap, b) InterlockedExchangeAdd((LONG volatile *) (ap), (b)); #define __sync_fetch_and_sub(ap, b) InterlockedExchangeAdd((LONG volatile *) (ap), -(b)); +/* MinGW gcc, no function prototype for built-in function stpcpy() */ +char *stpcpy (char *dest, const char *src); + #include static inline const char * strcasestr(const char *haystack, const char *needle) -- 2.11.4.GIT