summaryrefslogtreecommitdiff
path: root/w32/include/w32err.h
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
commit1befa76448266208ee853f3e5b3a34a12807eaf4 (patch)
treeca60afad9fe6ebd6478cd8f2dc03abe38e0cc934 /w32/include/w32err.h
parente3b394f3f0c01539efccfda8450b39d070cdc71d (diff)
downloadgunmake-1befa76448266208ee853f3e5b3a34a12807eaf4.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/w32err.h')
-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 ebf8c81..9131f04 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 */