diff options
Diffstat (limited to 'c-api')
| -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 be7f87e..42b0a4b 100644 --- a/c-api/compat-5.3.c +++ b/c-api/compat-5.3.c | |||
| @@ -28,8 +28,9 @@ | |||
| 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(__GLIBC__) || defined(_POSIX_VERSION) || defined(__APPLE__) || \ | 31 | # if (defined(_POSIX_C_SOURCE) && _POSIX_C_SOURCE >= 200112L) || \ |
| 32 | (!defined (__MINGW32__) && defined(__GNUC__) && (__GNUC__ < 6)) | 32 | (defined(_XOPEN_SOURCE) && _XOPEN_SOURCE >= 600) || \ |
| 33 | defined(__APPLE__) | ||
| 33 | # define COMPAT53_HAVE_STRERROR_R 1 | 34 | # define COMPAT53_HAVE_STRERROR_R 1 |
| 34 | # else /* none of the defines matched: define to 0 */ | 35 | # else /* none of the defines matched: define to 0 */ |
| 35 | # define COMPAT53_HAVE_STRERROR_R 0 | 36 | # define COMPAT53_HAVE_STRERROR_R 0 |
