changeset 28211:749784b513c6

Enable the function only if HAVE_INLINE.
author Bruno Haible <bruno@clisp.org>
date Sat, 24 Mar 2007 14:29:56 +0000
parents f7d7b1466e6f
children cfb1cc41a310
files 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
diffstat 6 files changed, 24 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/lib/unistr/u16-mbtouc-aux.c	Sat Mar 24 14:25:51 2007 +0000
+++ b/lib/unistr/u16-mbtouc-aux.c	Sat Mar 24 14:29:56 2007 +0000
@@ -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 @@
   *puc = 0xfffd;
   return 1;
 }
+
+#endif
--- a/lib/unistr/u16-mbtouc-unsafe-aux.c	Sat Mar 24 14:25:51 2007 +0000
+++ b/lib/unistr/u16-mbtouc-unsafe-aux.c	Sat Mar 24 14:29:56 2007 +0000
@@ -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 @@
   *puc = 0xfffd;
   return 1;
 }
+
+#endif
--- a/lib/unistr/u16-uctomb-aux.c	Sat Mar 24 14:25:51 2007 +0000
+++ b/lib/unistr/u16-uctomb-aux.c	Sat Mar 24 14:29:56 2007 +0000
@@ -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 @@
     }
   return -2;
 }
+
+#endif
--- a/lib/unistr/u8-mbtouc-aux.c	Sat Mar 24 14:25:51 2007 +0000
+++ b/lib/unistr/u8-mbtouc-aux.c	Sat Mar 24 14:29:56 2007 +0000
@@ -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 @@
   *puc = 0xfffd;
   return 1;
 }
+
+#endif
--- a/lib/unistr/u8-mbtouc-unsafe-aux.c	Sat Mar 24 14:25:51 2007 +0000
+++ b/lib/unistr/u8-mbtouc-unsafe-aux.c	Sat Mar 24 14:29:56 2007 +0000
@@ -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 @@
   *puc = 0xfffd;
   return 1;
 }
+
+#endif
--- a/lib/unistr/u8-uctomb-aux.c	Sat Mar 24 14:25:51 2007 +0000
+++ b/lib/unistr/u8-uctomb-aux.c	Sat Mar 24 14:29:56 2007 +0000
@@ -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 @@
     }
   return count;
 }
+
+#endif