diff options
Diffstat (limited to 'intl/plural-exp.h')
-rw-r--r-- | intl/plural-exp.h | 23 |
1 files changed, 14 insertions, 9 deletions
diff --git a/intl/plural-exp.h b/intl/plural-exp.h index 25b7c8b..75c702f 100644 --- a/intl/plural-exp.h +++ b/intl/plural-exp.h @@ -22,7 +22,7 @@ #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) () @@ -33,6 +33,10 @@ # define internal_function #endif +#ifndef attribute_hidden +# define attribute_hidden +#endif + /* This is the representation of the expressions to determine the plural form. */ @@ -95,10 +99,10 @@ struct parse_args # define GERMANIC_PLURAL __gettext_germanic_plural # define EXTRACT_PLURAL_EXPRESSION __gettext_extract_plural #elif defined (IN_LIBINTL) -# define FREE_EXPRESSION gettext_free_exp__ -# define PLURAL_PARSE gettextparse__ -# define GERMANIC_PLURAL gettext_germanic_plural__ -# define EXTRACT_PLURAL_EXPRESSION gettext_extract_plural__ +# define FREE_EXPRESSION libintl_gettext_free_exp +# define PLURAL_PARSE libintl_gettextparse +# define GERMANIC_PLURAL libintl_gettext_germanic_plural +# define EXTRACT_PLURAL_EXPRESSION libintl_gettext_extract_plural #else # define FREE_EXPRESSION free_plural_expression # define PLURAL_PARSE parse_plural_expression @@ -106,10 +110,6 @@ struct parse_args # define EXTRACT_PLURAL_EXPRESSION extract_plural_expression #endif -#ifndef attribute_hidden -# define attribute_hidden -#endif - extern void FREE_EXPRESSION PARAMS ((struct expression *exp)) internal_function; extern int PLURAL_PARSE PARAMS ((void *arg)); @@ -119,4 +119,9 @@ extern void EXTRACT_PLURAL_EXPRESSION PARAMS ((const char *nullentry, unsigned long int *npluralsp)) internal_function; +#if !defined (_LIBC) && !defined (IN_LIBINTL) +extern unsigned long int plural_eval PARAMS ((struct expression *pexp, + unsigned long int n)); +#endif + #endif /* _PLURAL_EXP_H */ |