add f and update single

This commit is contained in:
ThePhD 2017-09-11 11:42:11 -04:00
parent 7a29676633
commit b4c1ab0915
2 changed files with 8 additions and 8 deletions

View File

@ -20,8 +20,8 @@
// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. // CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
// This file was generated with a script. // This file was generated with a script.
// Generated 2017-09-11 15:30:55.804543 UTC // Generated 2017-09-11 15:41:55.640032 UTC
// This header was generated with sol v2.18.2 (revision 5fe73be) // This header was generated with sol v2.18.2 (revision 7a29676)
// https://github.com/ThePhD/sol2 // https://github.com/ThePhD/sol2
#ifndef SOL_SINGLE_INCLUDE_HPP #ifndef SOL_SINGLE_INCLUDE_HPP
@ -1967,11 +1967,11 @@ static char* compat53_strerror(int en, char* buff, size_t sz) {
/* use strerror_r here, because it's available on these specific platforms */ /* use strerror_r here, because it's available on these specific platforms */
#if defined(COMPAT53_HAVE_STRERROR_R_XSI) #if defined(COMPAT53_HAVE_STRERROR_R_XSI)
/* XSI Compliant */ /* XSI Compliant */
strerror_r(en, buf, sz); strerror_r(en, buff, sz);
return buf; return buff;
#else #else
/* GNU-specific which returns const char* */ /* GNU-specific which returns const char* */
return strerror_r(en, buf, sz); return strerror_r(en, buff, sz);
#endif #endif
#elif COMPAT53_HAVE_STRERROR_S #elif COMPAT53_HAVE_STRERROR_S
/* for MSVC and other C11 implementations, use strerror_s /* for MSVC and other C11 implementations, use strerror_s

View File

@ -49,11 +49,11 @@ static char* compat53_strerror(int en, char* buff, size_t sz) {
/* use strerror_r here, because it's available on these specific platforms */ /* use strerror_r here, because it's available on these specific platforms */
#if defined(COMPAT53_HAVE_STRERROR_R_XSI) #if defined(COMPAT53_HAVE_STRERROR_R_XSI)
/* XSI Compliant */ /* XSI Compliant */
strerror_r(en, buf, sz); strerror_r(en, buff, sz);
return buf; return buff;
#else #else
/* GNU-specific which returns const char* */ /* GNU-specific which returns const char* */
return strerror_r(en, buf, sz); return strerror_r(en, buff, sz);
#endif #endif
#elif COMPAT53_HAVE_STRERROR_S #elif COMPAT53_HAVE_STRERROR_S
/* for MSVC and other C11 implementations, use strerror_s /* for MSVC and other C11 implementations, use strerror_s