From: Rich Felker Date: Sun, 9 Sep 2018 04:55:28 +0000 (-0400) Subject: add internal header for declaring __pleval function (used by gettext) X-Git-Tag: v1.1.21~138 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=15230afc8dd5e6493da7cb5fcf0153672dab79d6;p=oweals%2Fmusl.git add internal header for declaring __pleval function (used by gettext) locale_impl.h could have been used, but this function is completely independent of anything else, and preserving that property seems nice. --- diff --git a/src/locale/dcngettext.c b/src/locale/dcngettext.c index d8af9603..de0828d9 100644 --- a/src/locale/dcngettext.c +++ b/src/locale/dcngettext.c @@ -8,6 +8,7 @@ #include "locale_impl.h" #include "libc.h" #include "atomic.h" +#include "pleval.h" struct binding { struct binding *next; @@ -114,7 +115,6 @@ weak_alias(dummy_gettextdomain, __gettextdomain); const unsigned char *__map_file(const char *, size_t *); int __munmap(void *, size_t); -unsigned long __pleval(const char *, unsigned long); char *dcngettext(const char *domainname, const char *msgid1, const char *msgid2, unsigned long int n, int category) { diff --git a/src/locale/pleval.c b/src/locale/pleval.c index d60058da..04da1c45 100644 --- a/src/locale/pleval.c +++ b/src/locale/pleval.c @@ -1,5 +1,6 @@ #include #include +#include "pleval.h" /* grammar: diff --git a/src/locale/pleval.h b/src/locale/pleval.h new file mode 100644 index 00000000..398d1b98 --- /dev/null +++ b/src/locale/pleval.h @@ -0,0 +1,6 @@ +#ifndef PLEVAL_H +#define PLEVAL_H + +unsigned long __pleval(const char *, unsigned long); + +#endif