]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
* include/grub/types.h: Check for GRUB_CPU_SIZEOF_LONG when appropriate.
authorJavier Martín <lordhabbit@gmail.com>
Sat, 12 Jun 2010 12:50:07 +0000 (14:50 +0200)
committerVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Sat, 12 Jun 2010 12:50:07 +0000 (14:50 +0200)
ChangeLog
include/grub/types.h

index a6a06053f48ffc51749532e47d5ef7908e45b1b8..8f85c127ac0a263a8fdbf9a77c200f1151075dde 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2010-06-12  Javier Martín <lordhabbit@gmail.com>
+
+       * include/grub/types.h: Check for GRUB_CPU_SIZEOF_LONG when appropriate.
+
 2010-06-12  Thomas Schmitt  <scdbackup@gmx.net>
 
        * util/grub-mkrescue.in: Support --xorriso argument.
index 6e9461f1de581b93a60e09dd44260534e5dda77d..a9e8adfd6730d7919fff5175f9939910ca328200 100644 (file)
@@ -60,7 +60,7 @@
 typedef signed char            grub_int8_t;
 typedef short                  grub_int16_t;
 typedef int                    grub_int32_t;
-#if GRUB_CPU_SIZEOF_VOID_P == 8
+#if GRUB_CPU_SIZEOF_LONG == 8
 typedef long                   grub_int64_t;
 #else
 typedef long long              grub_int64_t;
@@ -69,7 +69,7 @@ typedef long long             grub_int64_t;
 typedef unsigned char          grub_uint8_t;
 typedef unsigned short         grub_uint16_t;
 typedef unsigned               grub_uint32_t;
-#if GRUB_CPU_SIZEOF_VOID_P == 8
+#if GRUB_CPU_SIZEOF_LONG == 8
 typedef unsigned long          grub_uint64_t;
 #else
 typedef unsigned long long     grub_uint64_t;
@@ -98,7 +98,7 @@ typedef grub_uint32_t grub_size_t;
 typedef grub_int32_t   grub_ssize_t;
 #endif
 
-#if GRUB_CPU_SIZEOF_VOID_P == 8
+#if GRUB_CPU_SIZEOF_LONG == 8
 # define GRUB_ULONG_MAX 18446744073709551615UL
 # define GRUB_LONG_MAX 9223372036854775807L
 # define GRUB_LONG_MIN (-9223372036854775807L - 1)