aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiles Bader <miles@gnu.org>1997-03-02 18:41:32 +0000
committerMiles Bader <miles@gnu.org>1997-03-02 18:41:32 +0000
commitd1a2b102df91d6e478d1fa25d8a3e38f0b98e374 (patch)
tree5b039cadfe92bdabc99223eaa925d644409cf6ae
parentf6b38b9a39a360a262be1ba19ffa8210105f0d95 (diff)
downloadglibc-d1a2b102df91d6e478d1fa25d8a3e38f0b98e374.zip
glibc-d1a2b102df91d6e478d1fa25d8a3e38f0b98e374.tar.gz
glibc-d1a2b102df91d6e478d1fa25d8a3e38f0b98e374.tar.bz2
(__need_error_t): New macro, before including <errno.h>. [!__const] (__const): New macro. [!__error_t_defined] (error_t): New typedef.cvs/libc-970303
-rw-r--r--string/argz.h13
1 files changed, 11 insertions, 2 deletions
diff --git a/string/argz.h b/string/argz.h
index 255e1d3..e17b742 100644
--- a/string/argz.h
+++ b/string/argz.h
@@ -1,5 +1,5 @@
/* Routines for dealing with '\0' separated arg vectors.
- Copyright (C) 1995, 1996 Free Software Foundation, Inc.
+ Copyright (C) 1995, 1996, 1997 Free Software Foundation, Inc.
Written by Miles Bader <miles@gnu.ai.mit.edu>
The GNU C Library is free software; you can redistribute it and/or
@@ -22,9 +22,18 @@
#define __ARGZ_H__ 1
#include <features.h>
-#include <errno.h> /* Define error_t. */
+#define __need_error_t
+#include <errno.h>
#include <string.h> /* Need size_t, and strchr is called below. */
+#ifndef __const
+#define __const const
+#endif
+
+#ifndef __error_t_defined
+typedef int error_t;
+#endif
+
__BEGIN_DECLS