mirror of
https://github.com/ThePhD/sol2.git
synced 2024-03-22 13:10:44 +08:00
apple platforms use XSI-style strerror_r
This commit is contained in:
parent
5c9e8e2e45
commit
228df2630d
|
@ -31,9 +31,10 @@
|
||||||
# if defined(__GLIBC__) || defined(_POSIX_VERSION) || defined(__APPLE__) || \
|
# if defined(__GLIBC__) || defined(_POSIX_VERSION) || defined(__APPLE__) || \
|
||||||
(!defined (__MINGW32__) && defined(__GNUC__) && (__GNUC__ < 6))
|
(!defined (__MINGW32__) && defined(__GNUC__) && (__GNUC__ < 6))
|
||||||
# define COMPAT53_HAVE_STRERROR_R 1
|
# define COMPAT53_HAVE_STRERROR_R 1
|
||||||
# if ((defined(_POSIX_C_SOURCE) && _POSIX_C_SOURCE >= 200112L) || \
|
# if (((defined(_POSIX_C_SOURCE) && _POSIX_C_SOURCE >= 200112L) || \
|
||||||
(defined(_XOPEN_SOURCE) || _XOPEN_SOURCE >= 600)) && \
|
(defined(_XOPEN_SOURCE) || _XOPEN_SOURCE >= 600)) && \
|
||||||
(!defined(_GNU_SOURCE) || !_GNU_SOURCE)
|
(!defined(_GNU_SOURCE) || !_GNU_SOURCE)) || \
|
||||||
|
defined(__APPLE__)
|
||||||
# ifndef COMPAT53_HAVE_STRERROR_R_XSI
|
# ifndef COMPAT53_HAVE_STRERROR_R_XSI
|
||||||
# define COMPAT53_HAVE_STRERROR_R_XSI 1
|
# define COMPAT53_HAVE_STRERROR_R_XSI 1
|
||||||
# endif /* XSI-Compliant strerror_r */
|
# endif /* XSI-Compliant strerror_r */
|
||||||
|
|
Loading…
Reference in New Issue
Block a user