2009-07-20 Joe Auricchio <jauricchio@gmail.com>
[grub2/phcoder.git] / include / grub / setjmp.h
blob70147a7d4f6e4a5093bb022515b0ce754d5ac984
1 /*
2 * GRUB -- GRand Unified Bootloader
3 * Copyright (C) 2003,2006,2007 Free Software Foundation, Inc.
5 * GRUB is free software: you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation, either version 3 of the License, or
8 * (at your option) any later version.
10 * GRUB is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
15 * You should have received a copy of the GNU General Public License
16 * along with GRUB. If not, see <http://www.gnu.org/licenses/>.
19 #ifndef GRUB_SETJMP_HEADER
20 #define GRUB_SETJMP_HEADER 1
22 #if defined(GRUB_UTIL) && !defined(GRUBOF)
23 #include <setjmp.h>
24 typedef jmp_buf grub_jmp_buf;
25 #define grub_setjmp setjmp
26 #define grub_longjmp longjmp
27 #else
28 /* This must define grub_jmp_buf, and declare grub_setjmp and
29 grub_longjmp. */
30 # include <grub/cpu/setjmp.h>
31 #endif
33 #endif /* ! GRUB_SETJMP_HEADER */