summaryrefslogtreecommitdiff
path: root/src/vsnprintf.c
diff options
context:
space:
mode:
authorMichael R Sweet <michael.r.sweet@gmail.com>2001-04-27 14:39:27 +0000
committerMichael R Sweet <michael.r.sweet@gmail.com>2001-04-27 14:39:27 +0000
commitff3295f0365fcb3262129047311072138e208fcd (patch)
tree6b64d7cec6c67cdd487b5997fafbe5718342576b /src/vsnprintf.c
parent36b469928ed6833c792dc1a7451e6b65b08dc266 (diff)
Handle WM_ACTIVATEAPP message under WIN32, using GetAsyncKeyState() for
all of the key and button states in FLTK. SunOS 4.x changes (check for <sys/stdtypes.h> 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
Diffstat (limited to 'src/vsnprintf.c')
-rw-r--r--src/vsnprintf.c14
1 files changed, 9 insertions, 5 deletions
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 <stdarg.h>
#include <config.h>
-#if !HAVE_VSNPRINTF
+#ifdef HAVE_SYS_STDTYPES_H
+# include <sys/stdtypes.h>
+#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 $".
*/