]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
2007-10-27 Robert Millan <rmh@aybabtu.com>
authorrobertmh <robertmh@localhost>
Sat, 27 Oct 2007 11:56:58 +0000 (11:56 +0000)
committerrobertmh <robertmh@localhost>
Sat, 27 Oct 2007 11:56:58 +0000 (11:56 +0000)
* include/grub/types.h: Define ULONG_MAX.

ChangeLog
include/grub/types.h

index af794aa5fb08d4916399771f96451ee2ecb80ebd..dc190113c86ca9ae3ea0d54dfe66c46fd4ad0cd4 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2007-10-27  Robert Millan  <rmh@aybabtu.com>
+
+       * include/grub/types.h: Define ULONG_MAX.
+
 2007-10-22  Robert Millan  <rmh@aybabtu.com>
 
        * kern/i386/pc/startup.S: Remove `"kern/i386/realmode.S"'.  Include
index 12b4938b2e25ad3667957b4ad828e891fe014ecd..c51652ff05e1734103ae9ad3d963fd662bf0e463 100644 (file)
@@ -92,6 +92,12 @@ typedef grub_uint32_t        grub_size_t;
 typedef grub_int32_t   grub_ssize_t;
 #endif
 
+#if GRUB_CPU_SIZEOF_VOID_P == 8
+# define ULONG_MAX 18446744073709551615UL
+#else
+# define ULONG_MAX 4294967295UL
+#endif
+
 /* The type for representing a file offset.  */
 typedef grub_uint64_t  grub_off_t;