From b99e1506c295582615f6b011c5fcd7ff47f71bf3 Mon Sep 17 00:00:00 2001 From: pixel Date: Mon, 23 Dec 2002 16:58:34 +0000 Subject: FUCK WIN32!!! NO VSNPRINTF!!!! WHAT THE !@$!@$@!#@#! --- lib/Makefile.sol.mingw | 2 +- lib/String.cc | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/Makefile.sol.mingw b/lib/Makefile.sol.mingw index 0550fa8..999c48e 100644 --- a/lib/Makefile.sol.mingw +++ b/lib/Makefile.sol.mingw @@ -2,7 +2,7 @@ CC = i586-mingw32msvc-gcc CXX = i586-mingw32msvc-g++ AR = i586-mingw32msvc-ar RANLIB = i586-mingw32msvc-ranlib -CPPFLAGS = -I../include -DFORCE64 +CPPFLAGS = -I../include -DFORCE64 -DHAVE_VSNPRINTF OBJECTS = Buffer.o Exceptions.o Handle.o Image.o Input.o Main.o Output.o \ String.o checkargs.o datecalc.o fileutils.o generic.o TARGET = Baltisot-sol.a diff --git a/lib/String.cc b/lib/String.cc index 4367ebc..c3e8c07 100644 --- a/lib/String.cc +++ b/lib/String.cc @@ -54,7 +54,11 @@ String::String(const char * s, ...) { #endif va_start(ap, s); +#ifdef HAVE_VSNPRINTF vsnprintf(t, BUFSIZ, s, ap); +#else + vsprintf(t, s, ap); +#endif str = Base::strdup(t); va_end(ap); siz = ::strlen(str); -- cgit v1.2.3