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.
This commit is contained in:
parent
5947ae32f5
commit
083d16798e
2 changed files with 7 additions and 0 deletions
|
@ -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>
|
2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
|
||||||
|
|
||||||
* Makefile.in (docs/grub.info): Use make syntax to ignore errors
|
* Makefile.in (docs/grub.info): Use make syntax to ignore errors
|
||||||
|
|
|
@ -28,6 +28,7 @@
|
||||||
#define ALIGN_UP(addr, align) \
|
#define ALIGN_UP(addr, align) \
|
||||||
((addr + (typeof (addr)) align - 1) & ~((typeof (addr)) align - 1))
|
((addr + (typeof (addr)) align - 1) & ~((typeof (addr)) align - 1))
|
||||||
#define ARRAY_SIZE(array) (sizeof (array) / sizeof (array[0]))
|
#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)
|
#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. */
|
/* XXX: If grub_memmove is too slow, we must implement grub_memcpy. */
|
||||||
|
|
Loading…
Reference in a new issue