+2002-12-23 Bruno Haible <bruno@clisp.org>
+
+ * getline.h: Include <stddef.h>, for size_t.
+
+ * unicodeio.h: Include <stddef.h>, for size_t.
+ * unicodeio.c: Don't include <stddef.h>.
+
2002-12-17 Bruno Haible <bruno@clisp.org>
* canon-host.c (strdup): Remove unused declaration.
-/* Copyright (C) 1995, 1997, 1999 Free Software Foundation, Inc.
+/* Copyright (C) 1995, 1997, 1999, 2000-2002 Free Software Foundation, Inc.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
#ifndef GETLINE_H_
# define GETLINE_H_ 1
+# include <stddef.h>
# include <stdio.h>
# ifndef PARAMS
# endif
# endif
+/* glibc2 has these functions declared in <stdio.h>. Avoid redeclarations. */
# if __GLIBC__ < 2
+
int
getline PARAMS ((char **_lineptr, size_t *_n, FILE *_stream));
int
getdelim PARAMS ((char **_lineptr, size_t *_n, int _delimiter, FILE *_stream));
+
# endif
#endif /* not GETLINE_H_ */
# include <config.h>
#endif
-#if HAVE_STDDEF_H
-# include <stddef.h>
-#endif
+/* Specification. */
+#include "unicodeio.h"
#include <stdio.h>
#if HAVE_STRING_H
#define _(msgid) gettext (msgid)
#define N_(msgid) msgid
-/* Specification. */
-#include "unicodeio.h"
-
/* When we pass a Unicode character to iconv(), we must pass it in a
suitable encoding. The standardized Unicode encodings are
UTF-8, UCS-2, UCS-4, UTF-16, UTF-16BE, UTF-16LE, UTF-7.