| 1 | diff -rup ustr-1.0.4-orig/ustr-compiler.h ustr-1.0.4/ustr-compiler.h
|
| 2 | |
| 3 | |
| 4 | @@ -113,17 +113,23 @@
|
| 5 | #endif
|
| 6 |
|
| 7 | #ifndef USTR_CONF_EI_PROTO /* external inline */
|
| 8 | -# if USTR_CONF_INCLUDE_CODEONLY_HEADERS
|
| 9 | +# if USTR_CONF_INCLUDE_CODEONLY_HEADERS || ! defined(__GNUC__) || \
|
| 10 | + ! USTR_CONF_COMPILE_USE_INLINE
|
| 11 | # define USTR_CONF_EI_PROTO static USTR__INLINE
|
| 12 | # else
|
| 13 | # define USTR_CONF_EI_PROTO extern
|
| 14 | # endif
|
| 15 | #endif
|
| 16 | #ifndef USTR_CONF_II_PROTO /* implementation of inline */
|
| 17 | -# if USTR_CONF_INCLUDE_CODEONLY_HEADERS
|
| 18 | +# if USTR_CONF_INCLUDE_CODEONLY_HEADERS || ! defined(__GNUC__) || \
|
| 19 | + ! USTR_CONF_COMPILE_USE_INLINE
|
| 20 | # define USTR_CONF_II_PROTO static USTR__INLINE
|
| 21 | # else
|
| 22 | -# define USTR_CONF_II_PROTO extern inline
|
| 23 | +# if defined(__GNUC_STDC_INLINE__) || defined(__GNUC_GNU_INLINE__)
|
| 24 | +# define USTR_CONF_II_PROTO extern inline __attribute__ ((__gnu_inline__))
|
| 25 | +# else
|
| 26 | +# define USTR_CONF_II_PROTO extern inline
|
| 27 | +# endif
|
| 28 | # endif
|
| 29 | #endif
|
| 30 |
|