]> git.ipfire.org Git - ipfire-3.x.git/commitdiff
ustr: Import patches I forgot to commit
authorMichael Tremer <michael.tremer@ipfire.org>
Sun, 16 Oct 2016 20:44:23 +0000 (16:44 -0400)
committerMichael Tremer <michael.tremer@ipfire.org>
Sun, 16 Oct 2016 20:44:23 +0000 (16:44 -0400)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
ustr/patches/c99-inline.patch [new file with mode: 0644]
ustr/ustr.nm

diff --git a/ustr/patches/c99-inline.patch b/ustr/patches/c99-inline.patch
new file mode 100644 (file)
index 0000000..dfa021f
--- /dev/null
@@ -0,0 +1,30 @@
+diff -rup ustr-1.0.4-orig/ustr-compiler.h ustr-1.0.4/ustr-compiler.h
+--- ustr-1.0.4-orig/ustr-compiler.h    2008-02-15 15:12:28.000000000 -0500
++++ ustr-1.0.4/ustr-compiler.h 2008-06-13 15:25:18.000000000 -0400
+@@ -113,17 +113,23 @@
+ #endif
+ #ifndef USTR_CONF_EI_PROTO /* external inline */
+-# if USTR_CONF_INCLUDE_CODEONLY_HEADERS
++# if USTR_CONF_INCLUDE_CODEONLY_HEADERS || ! defined(__GNUC__) || \
++     ! USTR_CONF_COMPILE_USE_INLINE
+ #  define USTR_CONF_EI_PROTO static USTR__INLINE
+ # else
+ #  define USTR_CONF_EI_PROTO extern
+ # endif
+ #endif
+ #ifndef USTR_CONF_II_PROTO /* implementation of inline */
+-# if USTR_CONF_INCLUDE_CODEONLY_HEADERS
++# if USTR_CONF_INCLUDE_CODEONLY_HEADERS || ! defined(__GNUC__) || \
++     ! USTR_CONF_COMPILE_USE_INLINE
+ #  define USTR_CONF_II_PROTO static USTR__INLINE
+ # else
+-#  define USTR_CONF_II_PROTO extern inline
++#  if defined(__GNUC_STDC_INLINE__) || defined(__GNUC_GNU_INLINE__)
++#   define USTR_CONF_II_PROTO extern inline __attribute__ ((__gnu_inline__))
++#  else
++#   define USTR_CONF_II_PROTO extern inline
++#  endif
+ # endif
+ #endif
index 7db2a1e46b653560b554ffb15a0d52daff610e9d..9e12f8edf7dc48011bbfad6821973bcfe4ddf8f7 100644 (file)
@@ -5,7 +5,7 @@
 
 name       = ustr
 version    = 1.0.4
-release    = 3
+release    = 3.1
 
 groups     = System/Libraries
 url        = http://www.and.org/ustr/