From ff3295f0365fcb3262129047311072138e208fcd Mon Sep 17 00:00:00 2001 From: Michael R Sweet Date: Fri, 27 Apr 2001 14:39:27 +0000 Subject: Handle WM_ACTIVATEAPP message under WIN32, using GetAsyncKeyState() for all of the key and button states in FLTK. SunOS 4.x changes (check for and don't rely on realloc(NULL, size) working - this doesn't work on a lot of platforms!) Fix nesting of #ifdefs in vsnprintf.c - the C++ wrapper stuff wasn't being included outside the checks for the individual functions... git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1444 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- src/vsnprintf.c | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) (limited to 'src/vsnprintf.c') diff --git a/src/vsnprintf.c b/src/vsnprintf.c index 6774bcf56..e60b3b16f 100644 --- a/src/vsnprintf.c +++ b/src/vsnprintf.c @@ -1,5 +1,5 @@ /* - * "$Id: vsnprintf.c,v 1.3.2.4 2001/01/22 15:13:41 easysw Exp $" + * "$Id: vsnprintf.c,v 1.3.2.5 2001/04/27 14:39:27 easysw Exp $" * * vsnprintf() function for the Fast Light Tool Kit (FLTK). * @@ -41,12 +41,16 @@ #include #include -#if !HAVE_VSNPRINTF +#ifdef HAVE_SYS_STDTYPES_H +# include +#endif /* HAVE_SYS_STDTYPES_H */ #ifdef __cplusplus extern "C" { #endif +#if !HAVE_VSNPRINTF + int vsnprintf(char* str, size_t size, const char* fmt, va_list ap) { const char* e = str+size-1; char* p = str; @@ -124,13 +128,13 @@ int snprintf(char* str, size_t size, const char* fmt, ...) { return ret; } -#ifdef __cplusplus -} #endif +#ifdef __cplusplus +} #endif /* - * End of "$Id: vsnprintf.c,v 1.3.2.4 2001/01/22 15:13:41 easysw Exp $". + * End of "$Id: vsnprintf.c,v 1.3.2.5 2001/04/27 14:39:27 easysw Exp $". */ -- cgit v1.2.3