tests: define _GNU_SOURCE instead of __USE_GNU
[urcu.git] / tests / api.h
index 49c96f7d969eb4fa01bb35b7efc0c50266e88d79..03c370b12d40b94519a33adfc8b55f2f214c1ac3 100644 (file)
@@ -1,7 +1,7 @@
-
 #ifndef _INCLUDE_API_H
 #define _INCLUDE_API_H
 
+#define _GNU_SOURCE
 #include "../config.h"
 
 /*
  * to redistribute under later versions of GPL might not be available.
  */
 
+#include <urcu/compiler.h>
 #include <urcu/arch.h>
 
-#define BUILD_BUG_ON(condition) ((void)sizeof(char[1 - 2*!!(condition)]))
-#define BUILD_BUG_ON_ZERO(e) (sizeof(char[1 - 2 * !!(e)]) - 1)
-
 /*
  * Machine parameters.
  */
@@ -66,7 +64,6 @@
 #include <errno.h>
 #include <limits.h>
 #include <sys/types.h>
-#define __USE_GNU
 #include <pthread.h>
 #include <sched.h>
 #include <sys/param.h>
This page took 0.023208 seconds and 4 git commands to generate.