mirror of
https://git.savannah.gnu.org/git/grub.git
synced 2026-10-23 07:39:22 +00:00
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:
1 parent
6b4c4aa38b
commit
41bb0fe9a6
7 files changed
+22
-13
No files matched your search
@@ -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. */
|
||||
|
||||
Reference in new issue
Block a user