diff options
author | pixel <pixel> | 2002-12-23 16:58:34 +0000 |
---|---|---|
committer | pixel <pixel> | 2002-12-23 16:58:34 +0000 |
commit | b99e1506c295582615f6b011c5fcd7ff47f71bf3 (patch) | |
tree | fa7a7fd486f57a8c3678a56c91bab8386b37f2cf /lib | |
parent | 59e1829827c6daa888587f5aaf657dfc177daf3d (diff) |
FUCK WIN32!!! NO VSNPRINTF!!!! WHAT THE !@$!@$@!#@#!
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); |