diff options
| author | Philipp Janda <siffiejoe@gmx.net> | 2018-04-26 07:30:08 +0200 |
|---|---|---|
| committer | Philipp Janda <siffiejoe@gmx.net> | 2018-04-26 07:30:08 +0200 |
| commit | daebe77a2f498817713df37f0bb316db1d82222f (patch) | |
| tree | 5d3e140408e31e79177eca74e27ce4abc2f224e7 | |
| parent | d48f7f5e0932f573d18952642cfbd6da017f431c (diff) | |
| download | lua-compat-5.3-daebe77a2f498817713df37f0bb316db1d82222f.tar.gz lua-compat-5.3-daebe77a2f498817713df37f0bb316db1d82222f.tar.bz2 lua-compat-5.3-daebe77a2f498817713df37f0bb316db1d82222f.zip | |
Fix feature test for C11 Annex K (strerror_s).v0.7
Fixes #41.
| -rw-r--r-- | c-api/compat-5.3.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/c-api/compat-5.3.c b/c-api/compat-5.3.c index 370027a..bf81673 100644 --- a/c-api/compat-5.3.c +++ b/c-api/compat-5.3.c | |||
| @@ -37,8 +37,8 @@ | |||
| 37 | #endif /* strerror_r */ | 37 | #endif /* strerror_r */ |
| 38 | 38 | ||
| 39 | #ifndef COMPAT53_HAVE_STRERROR_S | 39 | #ifndef COMPAT53_HAVE_STRERROR_S |
| 40 | # if defined(_MSC_VER) || (defined(__STDC_VERSION__) && __STDC_VERSION__ >= 201112L) || \ | 40 | # if defined(_MSC_VER) || (defined(__STDC_VERSION__) && __STDC_VERSION__ >= 201112L && \ |
| 41 | (defined(__STDC_LIB_EXT1__) && __STDC_LIB_EXT1__) | 41 | defined(__STDC_LIB_EXT1__) && __STDC_LIB_EXT1__) |
| 42 | # define COMPAT53_HAVE_STRERROR_S 1 | 42 | # define COMPAT53_HAVE_STRERROR_S 1 |
| 43 | # else /* not VC++ or C11 */ | 43 | # else /* not VC++ or C11 */ |
| 44 | # define COMPAT53_HAVE_STRERROR_S 0 | 44 | # define COMPAT53_HAVE_STRERROR_S 0 |
