2009-04-15 Pavel Roskin <proski@gnu.org>
* include/grub/types.h: Rename ULONG_MAX to GRUB_ULONG_MAX and LONG_MAX to GRUB_LONG_MAX. Introduce GRUB_LONG_MIN. Update all users of ULONG_MAX, LONG_MAX and LONG_MIN to use the new definitions.
This commit is contained in:
parent
6b4c4aa38b
commit
41bb0fe9a6
7 changed files with 22 additions and 13 deletions
|
@ -93,11 +93,13 @@ typedef grub_int32_t grub_ssize_t;
|
|||
#endif
|
||||
|
||||
#if GRUB_CPU_SIZEOF_VOID_P == 8
|
||||
# define ULONG_MAX 18446744073709551615UL
|
||||
# define LONG_MAX 9223372036854775807UL
|
||||
# define GRUB_ULONG_MAX 18446744073709551615UL
|
||||
# define GRUB_LONG_MAX 9223372036854775807UL
|
||||
# define GRUB_LONG_MIN -9223372036854775808UL
|
||||
#else
|
||||
# define ULONG_MAX 4294967295UL
|
||||
# define LONG_MAX 2147483647UL
|
||||
# define GRUB_ULONG_MAX 4294967295UL
|
||||
# define GRUB_LONG_MAX 2147483647UL
|
||||
# define GRUB_LONG_MIN -2147483648UL
|
||||
#endif
|
||||
|
||||
/* The type for representing a file offset. */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue