summaryrefslogtreecommitdiff
path: root/w32/include
diff options
context:
space:
mode:
authorEli Zaretskii <eliz@gnu.org>2012-02-03 12:15:56 +0000
committerEli Zaretskii <eliz@gnu.org>2012-02-03 12:15:56 +0000
commit03b0fe5471d5b99ba7777226d6d7399d91c092f6 (patch)
treeca60afad9fe6ebd6478cd8f2dc03abe38e0cc934 /w32/include
parent89903121125afea882a463b403a6c78af769b409 (diff)
downloadmake-03b0fe5471d5b99ba7777226d6d7399d91c092f6.tar.gz
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.
Diffstat (limited to 'w32/include')
-rw-r--r--w32/include/w32err.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/w32/include/w32err.h b/w32/include/w32err.h
index ebf8c811..9131f041 100644
--- a/w32/include/w32err.h
+++ b/w32/include/w32err.h
@@ -22,6 +22,6 @@ this program. If not, see <http://www.gnu.org/licenses/>. */
#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 */