diff options
author | Mark Adler <madler@alumni.caltech.edu> | 2012-02-18 13:55:09 -0800 |
---|---|---|
committer | Mark Adler <madler@alumni.caltech.edu> | 2012-02-18 13:55:09 -0800 |
commit | 6838df92460eaceaaadd0f13aaea248a6b7c0a1b (patch) | |
tree | 14d8c840610fb50571cc01ecb6fa502acc0a24ba /gzguts.h | |
parent | d1714a57c59173837fc3d9c027e18ad6a1b6fc52 (diff) | |
download | zlib-6838df92460eaceaaadd0f13aaea248a6b7c0a1b.tar.gz zlib-6838df92460eaceaaadd0f13aaea248a6b7c0a1b.tar.bz2 zlib-6838df92460eaceaaadd0f13aaea248a6b7c0a1b.zip |
Test for existence of strerror.
SunOS 4.1 claims that it is __STDC__, but it does not have strerror
in string.h. Instead of using __STDC__, this puts a direct test
for strerror in configure, and uses that information in gzguts.h.
Diffstat (limited to 'gzguts.h')
-rw-r--r-- | gzguts.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -100,7 +100,7 @@ | |||
100 | # include <windows.h> | 100 | # include <windows.h> |
101 | # define zstrerror() gz_strwinerror((DWORD)GetLastError()) | 101 | # define zstrerror() gz_strwinerror((DWORD)GetLastError()) |
102 | #else | 102 | #else |
103 | # ifdef STDC | 103 | # ifndef NO_STRERROR |
104 | # include <errno.h> | 104 | # include <errno.h> |
105 | # define zstrerror() strerror(errno) | 105 | # define zstrerror() strerror(errno) |
106 | # else | 106 | # else |