From 1befa76448266208ee853f3e5b3a34a12807eaf4 Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Fri, 3 Feb 2012 12:15:56 +0000 Subject: Fix Savannah bug #34832 with unused TLS attributes. w32/subproc/w32err.c (map_windows32_error_to_string) [_MSC_VER]: Don't use TLS storage for szMessageBuffer. Ifdef away special code for handling Winsock error codes. Make the function return a `const char *'. Suggested by Ozkan Sezer. Fixes Savannah bug #34832. --- w32/include/w32err.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'w32/include') diff --git a/w32/include/w32err.h b/w32/include/w32err.h index ebf8c81..9131f04 100644 --- a/w32/include/w32err.h +++ b/w32/include/w32err.h @@ -22,6 +22,6 @@ this program. If not, see . */ #define EXTERN_DECL(entry, args) entry args #endif -EXTERN_DECL(char * map_windows32_error_to_string, (DWORD error)); +EXTERN_DECL(const char * map_windows32_error_to_string, (DWORD error)); #endif /* !_W32ERR_H */ -- cgit v1.2.3