* Add strnpy/strcpy_s wrapper to compile ProfileLogHandler.cpp
[matthijs/ABM2.git] / ABM2 / porting.h
index 3ad233031284628127cdf9aeea6df26805207e56..d6a59c8f480a9ea18da9d46135d665ed6c29e7fc 100644 (file)
@@ -1,5 +1,6 @@
 #ifndef WIN32
        #define vsprintf_s vsnprintf
        #define sprintf_s snprintf
+       #define strcpy_s(dst, size, src) strncpy(dst, src, size)
        #define ZeroMemory(buf, size) memset(buf, 0, size)
 #endif // !WIN32