+2001-11-10 Bruno Haible <haible@clisp.cons.org>
+
+ * acconfig.h (PARAMS): Also test for __GNUC__, __SUNPRO_C, __cplusplus
+ and __PROTOTYPES because on 64-bit Solaris, we need prototypes
+ although __STDC__ is often defined to 0. __GNUC__ covers GCC,
+ __SUNPRO_C covers Sun cc, regardless of compilation flags.
+ __PROTOTYPES, __cplusplus are just for consistency with libgnuintl.h.
+
2001-11-03 Bruno Haible <haible@clisp.cons.org>
* ltmain.sh: chmod 777 the .libs directory, so that "make install"
#define DEFAULT_OUTPUT_ALIGNMENT 1
#ifndef PARAMS
-# if __STDC__
+# if __STDC__ || defined __GNUC__ || defined __SUNPRO_C || defined __cplusplus || __PROTOTYPES
# define PARAMS(args) args
# else
# define PARAMS(args) ()
+2001-11-10 Bruno Haible <haible@clisp.cons.org>
+
+ * libgnuintl.h (_INTL_PARAMS): Renamed from PARAMS, to avoid polluting
+ the user's namespace.
+ Also test for __GNUC__, __SUNPRO_C and __PROTOTYPES because on
+ 64-bit Solaris, we need prototypes although __STDC__ is often defined
+ to 0. __GNUC__ covers GCC, __SUNPRO_C covers Sun cc, regardless of
+ compilation flags. __PROTOTYPES covers other compilers when compiling
+ programs using autoconf's AC_C_PROTOTYPES.
+ * gettextP.h (PARAMS): Also test for __SUNPRO_C, because 64-bit Solaris
+ cc needs prototypes although it defines __STDC__ to 0 by default.
+ Also test for __cplusplus and __PROTOTYPES, just for consistency with
+ libgnuintl.h.
+ * hash-string.h (PARAMS): Likewise.
+ * loadinfo.h (PARAMS): Likewise.
+ * plural-exp.h (PARAMS): Likewise.
+
2001-10-31 Bruno Haible <haible@clisp.cons.org>
* plural.y: Include <stddef.h>, needed for NULL with SunOS 4 cc.
/* @@ end of prolog @@ */
#ifndef PARAMS
-# if __STDC__
+# if __STDC__ || defined __GNUC__ || defined __SUNPRO_C || defined __cplusplus || __PROTOTYPES
# define PARAMS(args) args
# else
# define PARAMS(args) ()
/* @@ end of prolog @@ */
#ifndef PARAMS
-# if __STDC__
+# if __STDC__ || defined __GNUC__ || defined __SUNPRO_C || defined __cplusplus || __PROTOTYPES
# define PARAMS(Args) Args
# else
# define PARAMS(Args) ()
# define gettext gettext
#endif
-#ifndef PARAMS
-# if __STDC__ || defined __cplusplus
-# define PARAMS(args) args
+/* Use _INTL_PARAMS, not PARAMS, in order to avoid clashes with identifiers
+ used by programs. Similarly, test __PROTOTYPES, not PROTOTYPES. */
+#ifndef _INTL_PARAMS
+# if __STDC__ || defined __GNUC__ || defined __SUNPRO_C || defined __cplusplus || __PROTOTYPES
+# define _INTL_PARAMS(args) args
# else
-# define PARAMS(args) ()
+# define _INTL_PARAMS(args) ()
# endif
#endif
/* Look up MSGID in the current default message catalog for the current
LC_MESSAGES locale. If not found, returns MSGID itself (the default
text). */
-extern char *gettext PARAMS ((const char *__msgid));
+extern char *gettext _INTL_PARAMS ((const char *__msgid));
/* Look up MSGID in the DOMAINNAME message catalog for the current
LC_MESSAGES locale. */
-extern char *dgettext PARAMS ((const char *__domainname, const char *__msgid));
+extern char *dgettext _INTL_PARAMS ((const char *__domainname,
+ const char *__msgid));
/* Look up MSGID in the DOMAINNAME message catalog for the current CATEGORY
locale. */
-extern char *dcgettext PARAMS ((const char *__domainname, const char *__msgid,
- int __category));
+extern char *dcgettext _INTL_PARAMS ((const char *__domainname,
+ const char *__msgid,
+ int __category));
/* Similar to `gettext' but select the plural form corresponding to the
number N. */
-extern char *ngettext PARAMS ((const char *__msgid1, const char *__msgid2,
- unsigned long int __n));
+extern char *ngettext _INTL_PARAMS ((const char *__msgid1,
+ const char *__msgid2,
+ unsigned long int __n));
/* Similar to `dgettext' but select the plural form corresponding to the
number N. */
-extern char *dngettext PARAMS ((const char *__domainname, const char *__msgid1,
- const char *__msgid2, unsigned long int __n));
+extern char *dngettext _INTL_PARAMS ((const char *__domainname,
+ const char *__msgid1,
+ const char *__msgid2,
+ unsigned long int __n));
/* Similar to `dcgettext' but select the plural form corresponding to the
number N. */
-extern char *dcngettext PARAMS ((const char *__domainname, const char *__msgid1,
- const char *__msgid2, unsigned long int __n,
- int __category));
+extern char *dcngettext _INTL_PARAMS ((const char *__domainname,
+ const char *__msgid1,
+ const char *__msgid2,
+ unsigned long int __n,
+ int __category));
/* Set the current default message catalog to DOMAINNAME.
If DOMAINNAME is null, return the current default.
If DOMAINNAME is "", reset to the default of "messages". */
-extern char *textdomain PARAMS ((const char *__domainname));
+extern char *textdomain _INTL_PARAMS ((const char *__domainname));
/* Specify that the DOMAINNAME message catalog will be found
in DIRNAME rather than in the system locale data base. */
-extern char *bindtextdomain PARAMS ((const char *__domainname,
- const char *__dirname));
+extern char *bindtextdomain _INTL_PARAMS ((const char *__domainname,
+ const char *__dirname));
/* Specify the character encoding in which the messages from the
DOMAINNAME message catalog will be returned. */
-extern char *bind_textdomain_codeset PARAMS ((const char *__domainname,
- const char *__codeset));
+extern char *bind_textdomain_codeset _INTL_PARAMS ((const char *__domainname,
+ const char *__codeset));
/* Optimized version of the functions above. */
*/
#ifndef PARAMS
-# if __STDC__
+# if __STDC__ || defined __GNUC__ || defined __SUNPRO_C || defined __cplusplus || __PROTOTYPES
# define PARAMS(args) args
# else
# define PARAMS(args) ()
#define _PLURAL_EXP_H
#ifndef PARAMS
-# if __STDC__
+# if __STDC__ || defined __GNUC__ || defined __SUNPRO_C || defined __cplusplus || __PROTOTYPES
# define PARAMS(args) args
# else
# define PARAMS(args) ()
+2001-11-10 Bruno Haible <haible@clisp.cons.org>
+
+ * argmatch.h (PARAMS): Also test for __SUNPRO_C, because 64-bit Solaris
+ cc needs prototypes although it defines __STDC__ to 0 by default.
+ Also test for __cplusplus and __PROTOTYPES, just for consistency with
+ libgnuintl.h.
+ * c-ctype.h (PARAMS): Likewise.
+ * gcd.h (PARAMS): Likewise.
+ * getline.h (PARAMS): Likewise.
+ * hash.h (PARAMS): Likewise.
+ * linebreak.h (PARAMS): Likewise.
+ * mbswidth.h (PARAMS): Likewise.
+ * mkdtemp.h (PARAMS): Likewise.
+ * setenv.h (PARAMS): Likewise.
+ * strpbrk.h (PARAMS): Likewise.
+ * strstr.h (PARAMS): Likewise.
+ * system.h (PARAMS): Likewise.
+ * tmpdir.h (PARAMS): Likewise.
+
2001-11-05 Bruno Haible <haible@clisp.cons.org>
* tmpdir.c: Include string.h.
# include <sys/types.h>
# ifndef PARAMS
-# if PROTOTYPES || (defined (__STDC__) && __STDC__)
+# if __STDC__ || defined __GNUC__ || defined __SUNPRO_C || defined __cplusplus || __PROTOTYPES
# define PARAMS(args) args
# else
# define PARAMS(args) ()
-# endif /* GCC. */
+# endif /* ANSI C. */
# endif /* Not PARAMS. */
/* Assert there are as many real arguments as there are values
#define C_CTYPE_H
#ifndef PARAMS
-# if defined (__GNUC__) || __STDC__
+# if __STDC__ || defined __GNUC__ || defined __SUNPRO_C || defined __cplusplus || __PROTOTYPES
# define PARAMS(args) args
# else
# define PARAMS(args) ()
#define _GCD_H
#ifndef PARAMS
-# if defined (__GNUC__) || __STDC__
+# if __STDC__ || defined __GNUC__ || defined __SUNPRO_C || defined __cplusplus || __PROTOTYPES
# define PARAMS(args) args
# else
# define PARAMS(args) ()
-/* Copyright (C) 1995, 2000 Free Software Foundation, Inc.
+/* Copyright (C) 1995, 2000, 2001 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
# include <stdio.h>
# ifndef PARAMS
-# if defined (__GNUC__) || __STDC__
+# if __STDC__ || defined __GNUC__ || defined __SUNPRO_C || defined __cplusplus || __PROTOTYPES
# define PARAMS(args) args
# else
# define PARAMS(args) ()
-/* Copyright (C) 1995, 2000 Free Software Foundation, Inc.
+/* Copyright (C) 1995, 2000, 2001 Free Software Foundation, Inc.
The GNU C Library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public License as
hash_table;
# ifndef PARAMS
-# if defined (__GNUC__) || __STDC__
+# if __STDC__ || defined __GNUC__ || defined __SUNPRO_C || defined __cplusplus || __PROTOTYPES
# define PARAMS(Args) Args
# else
# define PARAMS(Args) ()
#define _LINEBREAK_H
#ifndef PARAMS
-# if defined (__GNUC__) || __STDC__
+# if __STDC__ || defined __GNUC__ || defined __SUNPRO_C || defined __cplusplus || __PROTOTYPES
# define PARAMS(args) args
# else
# define PARAMS(args) ()
#include <stddef.h>
#ifndef PARAMS
-# if defined (__GNUC__) || __STDC__
+# if __STDC__ || defined __GNUC__ || defined __SUNPRO_C || defined __cplusplus || __PROTOTYPES
# define PARAMS(Args) Args
# else
# define PARAMS(Args) ()
Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
#ifndef PARAMS
-# if defined (__GNUC__) || __STDC__
+# if __STDC__ || defined __GNUC__ || defined __SUNPRO_C || defined __cplusplus || __PROTOTYPES
# define PARAMS(Args) Args
# else
# define PARAMS(Args) ()
Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
#ifndef PARAMS
-# if defined (__GNUC__) || __STDC__
+# if __STDC__ || defined __GNUC__ || defined __SUNPRO_C || defined __cplusplus || __PROTOTYPES
# define PARAMS(Args) Args
# else
# define PARAMS(Args) ()
Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
#ifndef PARAMS
-# if defined (__GNUC__) || __STDC__
+# if __STDC__ || defined __GNUC__ || defined __SUNPRO_C || defined __cplusplus || __PROTOTYPES
# define PARAMS(Args) Args
# else
# define PARAMS(Args) ()
Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
#ifndef PARAMS
-# if defined (__GNUC__) || __STDC__
+# if __STDC__ || defined __GNUC__ || defined __SUNPRO_C || defined __cplusplus || __PROTOTYPES
# define PARAMS(Args) Args
# else
# define PARAMS(Args) ()
#define _SYSTEM_H 1
#ifndef PARAMS
-# if defined (__GNUC__) || __STDC__
+# if __STDC__ || defined __GNUC__ || defined __SUNPRO_C || defined __cplusplus || __PROTOTYPES
# define PARAMS(args) args
# else
# define PARAMS(args) ()
Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
#ifndef PARAMS
-# if defined (__GNUC__) || __STDC__
+# if __STDC__ || defined __GNUC__ || defined __SUNPRO_C || defined __cplusplus || __PROTOTYPES
# define PARAMS(Args) Args
# else
# define PARAMS(Args) ()