1 | #ifndef HAVE___ATTRIBUTE__ |
---|---|
2 | #define __attribute__(x) |
3 | #endif |
4 | |
5 | #if HAVE_DECL_FFS |
6 | #include <strings.h> |
7 | #endif |
8 | |
9 | #if (HAVE_DECL_FFS==0) && (HAVE_DECL___BUILTIN_FFS==1) |
10 | #define ffs __builtin_ffs |
11 | #endif |
12 | |
13 | #if !HAVE_DECL_FFS && !HAVE_DECL___BUILTIN_FFS && HAVE_DECL__BITSCANFORWARD |
14 | int isl_ffs(int i); |
15 | #define ffs isl_ffs |
16 | #endif |
17 | |
18 | #if HAVE_DECL_STRCASECMP || HAVE_DECL_STRNCASECMP |
19 | #include <strings.h> |
20 | #endif |
21 | |
22 | #if !HAVE_DECL_STRCASECMP && HAVE_DECL__STRICMP |
23 | #define strcasecmp _stricmp |
24 | #endif |
25 | |
26 | #if !HAVE_DECL_STRNCASECMP && HAVE_DECL__STRNICMP |
27 | #define strncasecmp _strnicmp |
28 | #endif |
29 | |
30 | #if HAVE_DECL__SNPRINTF |
31 | #define snprintf _snprintf |
32 | #endif |
33 | |
34 | #ifdef GCC_WARN_UNUSED_RESULT |
35 | #define WARN_UNUSED GCC_WARN_UNUSED_RESULT |
36 | #else |
37 | #define WARN_UNUSED |
38 | #endif |
39 |