]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
authorrobertmh <robertmh@localhost>
Mon, 26 Oct 2009 18:04:37 +0000 (18:04 +0000)
committerrobertmh <robertmh@localhost>
Mon, 26 Oct 2009 18:04:37 +0000 (18:04 +0000)
        * gensymlist.sh.in (COMPILE_TIME_ASSERT): Copy macro declaration
        from here ...
        * include/grub/misc.h (COMPILE_TIME_ASSERT): ... to here.

ChangeLog
include/grub/misc.h

index 2a9c048449110053fd0d5f557e619d15541ca378..afe67af2b7f014d8424f14f9ae0c1c30c60c3193 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2009-10-26  Robert Millan  <rmh.grub@aybabtu.com>
+
+       * gensymlist.sh.in (COMPILE_TIME_ASSERT): Copy macro declaration
+       from here ...
+       * include/grub/misc.h (COMPILE_TIME_ASSERT): ... to here.
+
 2009-10-26  Robert Millan  <rmh.grub@aybabtu.com>
 
        * Makefile.in (docs/grub.info): Use make syntax to ignore errors
index 7589f43a233976964f206e2a60a4c1a1fba434df..e3a0628988afdc3441bd9150cbc796dcd5c52040 100644 (file)
@@ -28,6 +28,7 @@
 #define ALIGN_UP(addr, align) \
        ((addr + (typeof (addr)) align - 1) & ~((typeof (addr)) align - 1))
 #define ARRAY_SIZE(array) (sizeof (array) / sizeof (array[0]))
+#define COMPILE_TIME_ASSERT(cond) switch (0) { case 1: case !(cond): ; }
 
 #define grub_dprintf(condition, fmt, args...) grub_real_dprintf(__FILE__, __LINE__, condition, fmt, ## args)
 /* XXX: If grub_memmove is too slow, we must implement grub_memcpy.  */