diff options
| author | Michael R Sweet <michael.r.sweet@gmail.com> | 1999-02-02 14:55:59 +0000 |
|---|---|---|
| committer | Michael R Sweet <michael.r.sweet@gmail.com> | 1999-02-02 14:55:59 +0000 |
| commit | 0434a826d57f5de3ef258532cc090717db574d4e (patch) | |
| tree | 28a7094eefc3db8fb13b7848ebaf7df9b8245625 | |
| parent | 44f8e8e32a07c083d9e55df47becd684d3fd1a9f (diff) | |
Fl_abort.cxx didn't include <config.h>, 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
| -rw-r--r-- | src/Fl_abort.cxx | 7 |
1 files changed, 5 insertions, 2 deletions
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 <stdarg.h> #include <stdio.h> #include <stdlib.h> +#include <config.h> #ifndef WIN32 @@ -56,9 +57,11 @@ static void error(const char *format, ...) { #else #include <windows.h> +# 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 $". // |
