diff options
author | Bruno Haible <bruno@clisp.org> | 2001-11-10 00:26:33 +0000 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2009-06-21 22:56:20 +0200 |
commit | 16fc59ed82f19035c88eb0f72899ca669655d405 (patch) | |
tree | f0bd8b78d3fc7476b447478579de30e399d8f713 /lib | |
parent | 38097b81318ccf9ef8616ca9f1c264e0aca177c1 (diff) | |
download | external_gettext-16fc59ed82f19035c88eb0f72899ca669655d405.zip external_gettext-16fc59ed82f19035c88eb0f72899ca669655d405.tar.gz external_gettext-16fc59ed82f19035c88eb0f72899ca669655d405.tar.bz2 |
Make PARAMS work better on Solaris.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/ChangeLog | 19 | ||||
-rw-r--r-- | lib/argmatch.h | 4 | ||||
-rw-r--r-- | lib/c-ctype.h | 2 | ||||
-rw-r--r-- | lib/gcd.h | 2 | ||||
-rw-r--r-- | lib/getline.h | 4 | ||||
-rw-r--r-- | lib/hash.h | 4 | ||||
-rw-r--r-- | lib/linebreak.h | 2 | ||||
-rw-r--r-- | lib/mbswidth.h | 2 | ||||
-rw-r--r-- | lib/mkdtemp.h | 2 | ||||
-rw-r--r-- | lib/setenv.h | 2 | ||||
-rw-r--r-- | lib/strpbrk.h | 2 | ||||
-rw-r--r-- | lib/strstr.h | 2 | ||||
-rw-r--r-- | lib/system.h | 2 | ||||
-rw-r--r-- | lib/tmpdir.h | 2 |
14 files changed, 35 insertions, 16 deletions
diff --git a/lib/ChangeLog b/lib/ChangeLog index 5550aef..539b0f1 100644 --- a/lib/ChangeLog +++ b/lib/ChangeLog @@ -1,3 +1,22 @@ +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. diff --git a/lib/argmatch.h b/lib/argmatch.h index 32b318b..380985e 100644 --- a/lib/argmatch.h +++ b/lib/argmatch.h @@ -28,11 +28,11 @@ # 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 diff --git a/lib/c-ctype.h b/lib/c-ctype.h index 9197102..64222c5 100644 --- a/lib/c-ctype.h +++ b/lib/c-ctype.h @@ -25,7 +25,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #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) () @@ -20,7 +20,7 @@ #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) () diff --git a/lib/getline.h b/lib/getline.h index a2aa231..5d34580 100644 --- a/lib/getline.h +++ b/lib/getline.h @@ -1,4 +1,4 @@ -/* 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 @@ -20,7 +20,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ # 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) () @@ -1,4 +1,4 @@ -/* 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 @@ -31,7 +31,7 @@ typedef struct hash_table 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) () diff --git a/lib/linebreak.h b/lib/linebreak.h index 5c7b7e7..f45e80e 100644 --- a/lib/linebreak.h +++ b/lib/linebreak.h @@ -20,7 +20,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #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) () diff --git a/lib/mbswidth.h b/lib/mbswidth.h index 7b2482a..1f9c660 100644 --- a/lib/mbswidth.h +++ b/lib/mbswidth.h @@ -18,7 +18,7 @@ #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) () diff --git a/lib/mkdtemp.h b/lib/mkdtemp.h index b56128e..dbc47ac 100644 --- a/lib/mkdtemp.h +++ b/lib/mkdtemp.h @@ -16,7 +16,7 @@ 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) () diff --git a/lib/setenv.h b/lib/setenv.h index df8fa83..26eec10 100644 --- a/lib/setenv.h +++ b/lib/setenv.h @@ -16,7 +16,7 @@ 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) () diff --git a/lib/strpbrk.h b/lib/strpbrk.h index bc01c3d..67aa525 100644 --- a/lib/strpbrk.h +++ b/lib/strpbrk.h @@ -16,7 +16,7 @@ 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) () diff --git a/lib/strstr.h b/lib/strstr.h index 5b89757..0162d09 100644 --- a/lib/strstr.h +++ b/lib/strstr.h @@ -16,7 +16,7 @@ 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) () diff --git a/lib/system.h b/lib/system.h index 966aa3d..47c1980 100644 --- a/lib/system.h +++ b/lib/system.h @@ -19,7 +19,7 @@ #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) () diff --git a/lib/tmpdir.h b/lib/tmpdir.h index 8fe7c31..2a8a37d 100644 --- a/lib/tmpdir.h +++ b/lib/tmpdir.h @@ -16,7 +16,7 @@ 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) () |