diff options
| author | David Lamparter <equinox@diac24.net> | 2019-05-12 22:39:28 +0200 |
|---|---|---|
| committer | David Lamparter <equinox@diac24.net> | 2019-06-03 16:44:29 +0200 |
| commit | e8c672ea8101c541f66e0959d526ae4f5a2a778d (patch) | |
| tree | d569dabe52f936a2667ccb1a896c10d235a1e5bf /lib/printf/printf-pos.c | |
| parent | 32b67a0aeb001d3974f432becd8c8783c7ed6d53 (diff) | |
lib/printf: disable wchar_t support
... we just don't use wchar_t in FRR, no point in having this enabled.
Signed-off-by: David Lamparter <equinox@diac24.net>
Diffstat (limited to 'lib/printf/printf-pos.c')
| -rw-r--r-- | lib/printf/printf-pos.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/printf/printf-pos.c b/lib/printf/printf-pos.c index 7f83dea1aa..c66f4d1a06 100644 --- a/lib/printf/printf-pos.c +++ b/lib/printf/printf-pos.c @@ -214,6 +214,7 @@ addaster(struct typetable *types, char **fmtp) return (0); } +#ifdef WCHAR_SUPPORT static inline int addwaster(struct typetable *types, wchar_t **fmtp) { @@ -239,6 +240,7 @@ addwaster(struct typetable *types, wchar_t **fmtp) } return (0); } +#endif /* WCHAR_SUPPORT */ /* * Find all arguments when a positional parameter is encountered. Returns a @@ -437,6 +439,7 @@ error: return (error || *argtable == NULL); } +#ifdef WCHAR_SUPPORT /* wchar version of __find_arguments. */ int __find_warguments (const wchar_t *fmt0, va_list ap, union arg **argtable) @@ -627,6 +630,7 @@ error: freetypes(&types); return (error || *argtable == NULL); } +#endif /* WCHAR_SUPPORT */ /* * Increase the size of the type table. Returns 0 on success. |
