1a259c
diff -rup ustr-1.0.4-orig/ustr-compiler.h ustr-1.0.4/ustr-compiler.h
1a259c
--- ustr-1.0.4-orig/ustr-compiler.h	2008-02-15 15:12:28.000000000 -0500
1a259c
+++ ustr-1.0.4/ustr-compiler.h	2008-06-13 15:25:18.000000000 -0400
1a259c
@@ -113,17 +113,23 @@
1a259c
 #endif
1a259c
 
1a259c
 #ifndef USTR_CONF_EI_PROTO /* external inline */
1a259c
-# if USTR_CONF_INCLUDE_CODEONLY_HEADERS
1a259c
+# if USTR_CONF_INCLUDE_CODEONLY_HEADERS || ! defined(__GNUC__) || \
1a259c
+     ! USTR_CONF_COMPILE_USE_INLINE
1a259c
 #  define USTR_CONF_EI_PROTO static USTR__INLINE
1a259c
 # else
1a259c
 #  define USTR_CONF_EI_PROTO extern
1a259c
 # endif
1a259c
 #endif
1a259c
 #ifndef USTR_CONF_II_PROTO /* implementation of inline */
1a259c
-# if USTR_CONF_INCLUDE_CODEONLY_HEADERS
1a259c
+# if USTR_CONF_INCLUDE_CODEONLY_HEADERS || ! defined(__GNUC__) || \
1a259c
+     ! USTR_CONF_COMPILE_USE_INLINE
1a259c
 #  define USTR_CONF_II_PROTO static USTR__INLINE
1a259c
 # else
1a259c
-#  define USTR_CONF_II_PROTO extern inline
1a259c
+#  if defined(__GNUC_STDC_INLINE__) || defined(__GNUC_GNU_INLINE__)
1a259c
+#   define USTR_CONF_II_PROTO extern inline __attribute__ ((__gnu_inline__))
1a259c
+#  else
1a259c
+#   define USTR_CONF_II_PROTO extern inline
1a259c
+#  endif
1a259c
 # endif
1a259c
 #endif
1a259c