* include/grub/setjmp.h: Define RETURNS_TWICE. Keep it empty for
gcc < 4.0. * include/grub/*/setjmp.h: USe RETURNS_TWICE.
This commit is contained in:
parent
757e3eb7c3
commit
0d3a6f8540
9 changed files with 22 additions and 7 deletions
|
@ -25,6 +25,15 @@ typedef jmp_buf grub_jmp_buf;
|
|||
#define grub_setjmp setjmp
|
||||
#define grub_longjmp longjmp
|
||||
#else
|
||||
|
||||
#include <grub/misc.h>
|
||||
|
||||
#if GNUC_PREREQ(4,0)
|
||||
#define RETURNS_TWICE __attribute__ ((returns_twice))
|
||||
#else
|
||||
#define RETURNS_TWICE
|
||||
#endif
|
||||
|
||||
/* This must define grub_jmp_buf, and declare grub_setjmp and
|
||||
grub_longjmp. */
|
||||
# include <grub/cpu/setjmp.h>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue