summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiles Bader <miles@gnu.org>1997-02-13 03:03:31 +0000
committerMiles Bader <miles@gnu.org>1997-02-13 03:03:31 +0000
commit51cb96ac2984c1ca195a6a2c6d8bdd4da8084943 (patch)
treec31e22793c2f2870b0c37196698f921bab000a11
parenta52976a0b6c0773c8bbfff818d9cad11696cfac8 (diff)
(_GNU_SOURCE): New macro.
[!isblank] (isblank): New macro. <ctype.h>: New include.
-rw-r--r--libshouldbeinlibc/argp-fmtstream.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/libshouldbeinlibc/argp-fmtstream.c b/libshouldbeinlibc/argp-fmtstream.c
index 042b10be..3f6474a0 100644
--- a/libshouldbeinlibc/argp-fmtstream.c
+++ b/libshouldbeinlibc/argp-fmtstream.c
@@ -22,16 +22,25 @@
/* This package emulates glibc `line_wrap_stream' semantics for systems that
don't have that. */
+/* Get some gnu features: isblank, vsnprintf */
+#undef _GNU_SOURCE
+#define _GNU_SOURCE
+
#include <stdlib.h>
#include <string.h>
#include <errno.h>
#include <stdarg.h>
+#include <ctype.h>
#include "argp-fmtstream.h"
#include "argp-namefrob.h"
#ifndef ARGP_FMTSTREAM_USE_LINEWRAP
+#ifndef isblank
+#define isblank(ch) ((ch)==' ' || (ch)=='\t')
+#endif
+
#define INIT_BUF_SIZE 200
#define PRINTF_SIZE_GUESS 150