From 2a01050a0cf0826f25240e2cb407535394ee360f Mon Sep 17 00:00:00 2001 From: kwolekr Date: Sun, 9 Feb 2014 12:38:50 -0500 Subject: Add capability to read table flag fields from Lua API --- src/porting.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/porting.h') diff --git a/src/porting.h b/src/porting.h index 4cfac21d1..0f2007fa7 100644 --- a/src/porting.h +++ b/src/porting.h @@ -88,6 +88,11 @@ with this program; if not, write to the Free Software Foundation, Inc., #define strtoull(x, y, z) _strtoui64(x, y, z) #define strcasecmp(x, y) stricmp(x, y) #define strncasecmp(x, y, n) strnicmp(x, y, n) + + // We can't simply alias strlcpy() to MSVC's strcpy_s(), since strcpy_s + // by default raises an assertion error and aborts the program if the + // buffer is too small. So we need to define our own. + #define strlcpy(x, y, n) mystrlcpy(x, y, n) #else #define ALIGNOF(x) __alignof__(x) #endif -- cgit v1.2.3