isl_test_cpp17-generic.cc: work around std::optional::value issue in older macOS
[isl.git] / isl_config_post.h
blob4ceb7f0edb739e4d8a9e42622d34718809b5e075
1 #ifndef HAVE___ATTRIBUTE__
2 #define __attribute__(x)
3 #endif
5 #if HAVE_DECL_FFS
6 #include <strings.h>
7 #endif
9 #if (HAVE_DECL_FFS==0) && (HAVE_DECL___BUILTIN_FFS==1)
10 #define ffs __builtin_ffs
11 #endif
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
18 #if HAVE_DECL_STRCASECMP || HAVE_DECL_STRNCASECMP
19 #include <strings.h>
20 #endif
22 #if !HAVE_DECL_STRCASECMP && HAVE_DECL__STRICMP
23 #define strcasecmp _stricmp
24 #endif
26 #if !HAVE_DECL_STRNCASECMP && HAVE_DECL__STRNICMP
27 #define strncasecmp _strnicmp
28 #endif
30 #if HAVE_DECL__SNPRINTF
31 #define snprintf _snprintf
32 #endif
34 #ifdef GCC_WARN_UNUSED_RESULT
35 #define WARN_UNUSED GCC_WARN_UNUSED_RESULT
36 #else
37 #define WARN_UNUSED
38 #endif