From 6c5c7e79bd148a694b5683ac41da3219533b22a4 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Sat, 24 Mar 2007 14:29:56 +0000 Subject: [PATCH] Enable the function only if HAVE_INLINE. --- lib/unistr/u16-mbtouc-aux.c | 4 ++++ lib/unistr/u16-mbtouc-unsafe-aux.c | 4 ++++ lib/unistr/u16-uctomb-aux.c | 4 ++++ lib/unistr/u8-mbtouc-aux.c | 4 ++++ lib/unistr/u8-mbtouc-unsafe-aux.c | 4 ++++ lib/unistr/u8-uctomb-aux.c | 4 ++++ 6 files changed, 24 insertions(+) diff --git a/lib/unistr/u16-mbtouc-aux.c b/lib/unistr/u16-mbtouc-aux.c index 8cef329993..7df94df549 100644 --- a/lib/unistr/u16-mbtouc-aux.c +++ b/lib/unistr/u16-mbtouc-aux.c @@ -22,6 +22,8 @@ /* Specification. */ #include "unistr.h" +#if HAVE_INLINE + int u16_mbtouc_aux (ucs4_t *puc, const uint16_t *s, size_t n) { @@ -47,3 +49,5 @@ u16_mbtouc_aux (ucs4_t *puc, const uint16_t *s, size_t n) *puc = 0xfffd; return 1; } + +#endif diff --git a/lib/unistr/u16-mbtouc-unsafe-aux.c b/lib/unistr/u16-mbtouc-unsafe-aux.c index bc41205bb2..7ba7faf7d8 100644 --- a/lib/unistr/u16-mbtouc-unsafe-aux.c +++ b/lib/unistr/u16-mbtouc-unsafe-aux.c @@ -22,6 +22,8 @@ /* Specification. */ #include "unistr.h" +#if HAVE_INLINE + int u16_mbtouc_unsafe_aux (ucs4_t *puc, const uint16_t *s, size_t n) { @@ -51,3 +53,5 @@ u16_mbtouc_unsafe_aux (ucs4_t *puc, const uint16_t *s, size_t n) *puc = 0xfffd; return 1; } + +#endif diff --git a/lib/unistr/u16-uctomb-aux.c b/lib/unistr/u16-uctomb-aux.c index 7ea56a18ba..6b047277d4 100644 --- a/lib/unistr/u16-uctomb-aux.c +++ b/lib/unistr/u16-uctomb-aux.c @@ -22,6 +22,8 @@ /* Specification. */ #include "unistr.h" +#if HAVE_INLINE + int u16_uctomb_aux (uint16_t *s, ucs4_t uc, int n) { @@ -58,3 +60,5 @@ u16_uctomb_aux (uint16_t *s, ucs4_t uc, int n) } return -2; } + +#endif diff --git a/lib/unistr/u8-mbtouc-aux.c b/lib/unistr/u8-mbtouc-aux.c index 15343db2c0..04da6307fa 100644 --- a/lib/unistr/u8-mbtouc-aux.c +++ b/lib/unistr/u8-mbtouc-aux.c @@ -22,6 +22,8 @@ /* Specification. */ #include "unistr.h" +#if HAVE_INLINE + int u8_mbtouc_aux (ucs4_t *puc, const uint8_t *s, size_t n) { @@ -154,3 +156,5 @@ u8_mbtouc_aux (ucs4_t *puc, const uint8_t *s, size_t n) *puc = 0xfffd; return 1; } + +#endif diff --git a/lib/unistr/u8-mbtouc-unsafe-aux.c b/lib/unistr/u8-mbtouc-unsafe-aux.c index 00ba199b3f..a4f07c4459 100644 --- a/lib/unistr/u8-mbtouc-unsafe-aux.c +++ b/lib/unistr/u8-mbtouc-unsafe-aux.c @@ -22,6 +22,8 @@ /* Specification. */ #include "unistr.h" +#if HAVE_INLINE + int u8_mbtouc_unsafe_aux (ucs4_t *puc, const uint8_t *s, size_t n) { @@ -164,3 +166,5 @@ u8_mbtouc_unsafe_aux (ucs4_t *puc, const uint8_t *s, size_t n) *puc = 0xfffd; return 1; } + +#endif diff --git a/lib/unistr/u8-uctomb-aux.c b/lib/unistr/u8-uctomb-aux.c index f9fcee05a0..a7208eacab 100644 --- a/lib/unistr/u8-uctomb-aux.c +++ b/lib/unistr/u8-uctomb-aux.c @@ -22,6 +22,8 @@ /* Specification. */ #include "unistr.h" +#if HAVE_INLINE + int u8_uctomb_aux (uint8_t *s, ucs4_t uc, int n) { @@ -69,3 +71,5 @@ u8_uctomb_aux (uint8_t *s, ucs4_t uc, int n) } return count; } + +#endif -- 2.30.2