diff options
author | Oliver Schneider <oliver@assarbad.net> | 2018-10-10 02:22:43 +0300 |
---|---|---|
committer | Oliver Schneider <oliver@assarbad.net> | 2018-10-10 02:22:43 +0300 |
commit | 6892f237c5289d3980605c23e8a8b046ecaef345 (patch) | |
tree | 7a8cfa6423d25169f93c9e69ee652c35b0bd9894 | |
parent | c18b11faab77b93c5c4122bff21a25fac663b0bd (diff) |
Addressing the warning about _ui64toa_s on MinGWwarning-fixups
-rw-r--r-- | src/lua_int64.h | 4 | ||||
-rw-r--r-- | src/winreg.c | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/src/lua_int64.h b/src/lua_int64.h index fa26cfa..d6f84dd 100644 --- a/src/lua_int64.h +++ b/src/lua_int64.h @@ -15,6 +15,10 @@ INT64 lua_checkINT64(lua_State *L, int i); int atoUINT64(const char* s, UINT64 * pv);
int atoINT64(const char* s, INT64 *pv);
+#ifndef MINGW_HAS_SECURE_API
+#define _ui64toa_s(val, buf, sz, radix) !_ui64toa(val, buf, radix)
+#endif
+
#ifdef __GNUC__
#define CONST_9007199254740992 0x20000000000000LL
#else
diff --git a/src/winreg.c b/src/winreg.c index ae1f3d9..b8c8f48 100644 --- a/src/winreg.c +++ b/src/winreg.c @@ -2,7 +2,7 @@ # include <luamsvc.h>
#endif
-#include <stdlib.h> /* _ui64toa_s */
+#include <stdlib.h> /* _ui64toa/_ui64toa_s */
#include <assert.h>
#ifndef lua_assert
#define lua_assert assert
|