From: Matthijs Kooijman Date: Sun, 10 Jun 2007 19:47:33 +0000 (+0200) Subject: * Add strnpy/strcpy_s wrapper to compile ProfileLogHandler.cpp X-Git-Url: https://git.stderr.nl/gitweb?a=commitdiff_plain;h=3f925daf5df7b52445d337b5aaf0257278ff6828;p=matthijs%2FABM2.git * Add strnpy/strcpy_s wrapper to compile ProfileLogHandler.cpp --- diff --git a/ABM2/Makefile b/ABM2/Makefile index 271ff3b..216421b 100644 --- a/ABM2/Makefile +++ b/ABM2/Makefile @@ -1,5 +1,5 @@ CFLAGS:=-I. -OBJS:=main.o Engine/Log.o SchemeReader.o Engine/Settings.o Engine/mmanager.o Engine/Kernel.o +OBJS:=main.o Engine/Log.o SchemeReader.o Engine/Settings.o Engine/mmanager.o Engine/Kernel.o Engine/ProfileLogHandler.o all: $(OBJS) diff --git a/ABM2/porting.h b/ABM2/porting.h index 3ad2330..d6a59c8 100644 --- a/ABM2/porting.h +++ b/ABM2/porting.h @@ -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