configure: standardise include path
[urcu.git] / tests / utils / tap.c
index 6acab66c841aea101d8e247cba60ef9a33101af7..3e384d6077c74fe2943a24afe90091d733c81b1b 100644 (file)
@@ -24,7 +24,6 @@
  * SUCH DAMAGE.
  */
 
-#define _GNU_SOURCE
 #include <ctype.h>
 #include <stdarg.h>
 #include <stdio.h>
@@ -95,7 +94,8 @@ _gen_result(int ok, const char *func, char *file, unsigned int line,
                if(local_test_name) {
                        name_is_digits = 1;
                        for(c = local_test_name; *c != '\0'; c++) {
-                               if(!isdigit(*c) && !isspace(*c)) {
+                               if(!isdigit((unsigned char)*c) &&
+                                               !isspace((unsigned char)*c)) {
                                        name_is_digits = 0;
                                        break;
                                }
This page took 0.022843 seconds and 4 git commands to generate.