mirror of
https://github.com/fltk/fltk.git
synced 2026-06-06 00:22:42 +08:00
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
This commit is contained in:
+5
-2
@@ -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).
|
// Warning/error message code for the Fast Light Tool Kit (FLTK).
|
||||||
//
|
//
|
||||||
@@ -31,6 +31,7 @@
|
|||||||
#include <stdarg.h>
|
#include <stdarg.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
#include <config.h>
|
||||||
|
|
||||||
#ifndef WIN32
|
#ifndef WIN32
|
||||||
|
|
||||||
@@ -56,9 +57,11 @@ static void error(const char *format, ...) {
|
|||||||
#else
|
#else
|
||||||
|
|
||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
|
# if !HAVE_VSNPRINTF
|
||||||
extern "C" {
|
extern "C" {
|
||||||
int vsnprintf(char* str, size_t size, const char* fmt, va_list ap);
|
int vsnprintf(char* str, size_t size, const char* fmt, va_list ap);
|
||||||
}
|
}
|
||||||
|
# endif /* !HAVE_VSNPRINTF */
|
||||||
|
|
||||||
static void warning(const char *format, ...) {
|
static void warning(const char *format, ...) {
|
||||||
va_list args;
|
va_list args;
|
||||||
@@ -86,5 +89,5 @@ void (*Fl::error)(const char* format, ...) = ::error;
|
|||||||
void (*Fl::fatal)(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 $".
|
||||||
//
|
//
|
||||||
|
|||||||
Reference in New Issue
Block a user