s3:smbd: also log the "offline" flag when debugging the dos-mode
[Samba/gebeck_regimport.git] / lib / ccan / str / test / compile_fail-isblank.c
blobf4cb961d740d9dd0bc9b99825a3af51d3d50d848
1 #define CCAN_STR_DEBUG 1
2 #include <ccan/str/str.h>
4 int main(int argc, char *argv[])
6 #ifdef FAIL
7 #if !HAVE_BUILTIN_TYPES_COMPATIBLE_P || !HAVE_TYPEOF || !HAVE_ISBLANK
8 #error We need typeof to check isblank.
9 #endif
10 char
11 #else
12 unsigned char
13 #endif
14 c = argv[0][0];
16 #ifdef FAIL
17 /* Fake fail on unsigned char platforms. */
18 BUILD_ASSERT((char)255 < 0);
19 #endif
21 #if HAVE_ISBLANK
22 return isblank(c);
23 #else
24 return c;
25 #endif