X-Git-Url: https://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=ccan%2Fdeque%2F_info;h=1c5460f932b2b11976f143ac14980d431f4939db;hp=b1a47bbbb8e6f5d832f1b79f0a621562451e1aa3;hb=HEAD;hpb=4eb5f52c94d6c32f1b8347ee599906d60239e0d4 diff --git a/ccan/deque/_info b/ccan/deque/_info index b1a47bbb..1c5460f9 100644 --- a/ccan/deque/_info +++ b/ccan/deque/_info @@ -16,7 +16,7 @@ * Example: * // Evaluates arithmetic expressions using Dijkstra's two-stack algorithm. * // Original: http://algs4.cs.princeton.edu/13stacks/EvaluateDeluxe.java.html - * #define _XOPEN_SOURCE 700 + * #define _XOPEN_SOURCE 700 // only for getline(3) in this demo * #include * #include * #include @@ -136,5 +136,13 @@ int main(int argc, char *argv[]) return 0; } + if (strcmp(argv[1], "ccanlint") == 0) { + /* uses statement expressions + * supported by gcc, clang, icc, and some others, but not msvc + * (see https://gcc.gnu.org/onlinedocs/gcc/Statement-Exprs.html) */ + printf("objects_build_without_features FAIL\n"); + return 0; + } + return 1; }