Lines 4-16
Link Here
|
4 |
/* this is the custom version for the library itself, for everyone else |
4 |
/* this is the custom version for the library itself, for everyone else |
5 |
* ustr-import generates one depending on the options. */ |
5 |
* ustr-import generates one depending on the options. */ |
6 |
|
6 |
|
|
|
7 |
/* If this is GCC with major version 5 and up, the default C standard |
8 |
* has changed from C89 to C99 so the old inline behaviour must be |
9 |
* restored: |
10 |
*/ |
11 |
#if defined(__GNUC__) \ |
12 |
&& (__GNUC__ > 4) \ |
13 |
&& defined(__STDC_VERSION__) \ |
14 |
&& (__STDC_VERSION__ >= 199901L) |
15 |
# define inline inline __attribute__ ((gnu_inline)) |
16 |
#endif /* GCC greater than major version 4 and not -std=c89 set */ |
17 |
|
7 |
/* The default is now to link against libc. */ |
18 |
/* The default is now to link against libc. */ |
8 |
#ifndef USTR_CONF_INCLUDE_CODEONLY_HEADERS |
19 |
#ifndef USTR_CONF_INCLUDE_CODEONLY_HEADERS |
9 |
#define USTR_CONF_INCLUDE_CODEONLY_HEADERS 0 |
20 |
#define USTR_CONF_INCLUDE_CODEONLY_HEADERS 0 |
10 |
#endif |
21 |
#endif |
11 |
|
22 |
|
12 |
/* We can't: if defined(__GLIBC__) && (!defined(_GNU_SOURCE) || !_GNU_SOURCE) |
23 |
/* We can't: if defined(__GLIBC__) && (!defined(_GNU_SOURCE) || !_GNU_SOURCE) |
13 |
* because by the time we've included a libc header it's too late. */ |
24 |
* because by the time we've included a libc header it's too late. */ |
14 |
#ifndef _GNU_SOURCE |
25 |
#ifndef _GNU_SOURCE |
15 |
#define _GNU_SOURCE 1 |
26 |
#define _GNU_SOURCE 1 |
16 |
#endif |
27 |
#endif |