* Add strnpy/strcpy_s wrapper to compile ProfileLogHandler.cpp
[matthijs/ABM2.git] / ABM2 / porting.h
index a4f6c1fdf5766a70f72586bf417e0677a24ed0b1..d6a59c8f480a9ea18da9d46135d665ed6c29e7fc 100644 (file)
@@ -1,3 +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