api: reimplement BUILD_BUG_ON in compiler.h
[urcu.git] / tests / api.h
index 49c96f7d969eb4fa01bb35b7efc0c50266e88d79..c5d716f65f47a861988cc864182f44994f46d4f1 100644 (file)
  * 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.
  */
This page took 0.022534 seconds and 4 git commands to generate.