From 0434a826d57f5de3ef258532cc090717db574d4e Mon Sep 17 00:00:00 2001 From: Michael R Sweet Date: Tue, 2 Feb 1999 14:55:59 +0000 Subject: Fl_abort.cxx didn't include , and didn't conditionally declare a prototype for vsnprintf(). This caused problems with CodeWarrier. git-svn-id: file:///fltk/svn/fltk/trunk@267 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- src/Fl_abort.cxx | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/Fl_abort.cxx b/src/Fl_abort.cxx index 7fbe14780..32b3c024c 100644 --- a/src/Fl_abort.cxx +++ b/src/Fl_abort.cxx @@ -1,5 +1,5 @@ // -// "$Id: Fl_abort.cxx,v 1.6 1999/01/07 19:17:30 mike Exp $" +// "$Id: Fl_abort.cxx,v 1.7 1999/02/02 14:55:59 mike Exp $" // // Warning/error message code for the Fast Light Tool Kit (FLTK). // @@ -31,6 +31,7 @@ #include #include #include +#include #ifndef WIN32 @@ -56,9 +57,11 @@ static void error(const char *format, ...) { #else #include +# if !HAVE_VSNPRINTF extern "C" { int vsnprintf(char* str, size_t size, const char* fmt, va_list ap); } +# endif /* !HAVE_VSNPRINTF */ static void warning(const char *format, ...) { va_list args; @@ -86,5 +89,5 @@ void (*Fl::error)(const char* format, ...) = ::error; void (*Fl::fatal)(const char* format, ...) = ::error; // -// End of "$Id: Fl_abort.cxx,v 1.6 1999/01/07 19:17:30 mike Exp $". +// End of "$Id: Fl_abort.cxx,v 1.7 1999/02/02 14:55:59 mike Exp $". // -- cgit v1.2.3