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 8cef329993653cf6bcf0f216f9d2e28c80c6ab96..7df94df549bfc9eac3c501e48b603d610afb5938 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 bc41205bb2a55eb0e96ab5e1e583c78d202c80c5..7ba7faf7d8c1be80054858c03b69a8a2f78bceb2 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 7ea56a18baa156b34dedac2750c49f2862f2ce36..6b047277d495cd2027e22ae533fb6a611bc69bd9 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 15343db2c09b9ce40f92a7288c9e18b202df890b..04da6307fab1f37bb84908b0cd101daaeaae8857 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 00ba199b3f7686d8e40ffe1ee49781dd8a4c9fba..a4f07c4459716c002a13bc84b393bbf1a86e1aac 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 f9fcee05a0db5641a2311cc3d11f01605efc5de5..a7208eacabf51460633b31d78e57c95173013b93 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