diff options
-rw-r--r-- | c-api/compat-5.3.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/c-api/compat-5.3.c b/c-api/compat-5.3.c index 64592d6..1901a82 100644 --- a/c-api/compat-5.3.c +++ b/c-api/compat-5.3.c | |||
@@ -28,9 +28,10 @@ | |||
28 | #endif /* VC++ _fsopen for share-allowed file read */ | 28 | #endif /* VC++ _fsopen for share-allowed file read */ |
29 | 29 | ||
30 | #ifndef COMPAT53_HAVE_STRERROR_R | 30 | #ifndef COMPAT53_HAVE_STRERROR_R |
31 | # if (defined(_POSIX_C_SOURCE) && _POSIX_C_SOURCE >= 200112L) || \ | 31 | # if (!defined(_WIN32)) && \ |
32 | ((defined(_POSIX_C_SOURCE) && _POSIX_C_SOURCE >= 200112L) || \ | ||
32 | (defined(_XOPEN_SOURCE) && _XOPEN_SOURCE >= 600) || \ | 33 | (defined(_XOPEN_SOURCE) && _XOPEN_SOURCE >= 600) || \ |
33 | defined(__APPLE__) | 34 | defined(__APPLE__)) |
34 | # define COMPAT53_HAVE_STRERROR_R 1 | 35 | # define COMPAT53_HAVE_STRERROR_R 1 |
35 | # else /* none of the defines matched: define to 0 */ | 36 | # else /* none of the defines matched: define to 0 */ |
36 | # define COMPAT53_HAVE_STRERROR_R 0 | 37 | # define COMPAT53_HAVE_STRERROR_R 0 |