Enable the function only if HAVE_INLINE.
authorBruno Haible <bruno@clisp.org>
Sat, 24 Mar 2007 14:29:56 +0000 (14:29 +0000)
committerBruno Haible <bruno@clisp.org>
Sat, 24 Mar 2007 14:29:56 +0000 (14:29 +0000)
lib/unistr/u16-mbtouc-aux.c
lib/unistr/u16-mbtouc-unsafe-aux.c
lib/unistr/u16-uctomb-aux.c
lib/unistr/u8-mbtouc-aux.c
lib/unistr/u8-mbtouc-unsafe-aux.c
lib/unistr/u8-uctomb-aux.c

index 8cef329..7df94df 100644 (file)
@@ -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
index bc41205..7ba7faf 100644 (file)
@@ -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
index 7ea56a1..6b04727 100644 (file)
@@ -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
index 15343db..04da630 100644 (file)
@@ -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
index 00ba199..a4f07c4 100644 (file)
@@ -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
index f9fcee0..a7208ea 100644 (file)
@@ -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