diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Makefile.sol.mingw | 2 | ||||
-rw-r--r-- | lib/String.cc | 4 |
2 files changed, 5 insertions, 1 deletions
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); |