]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
Properly define WORDS_BIGENDIAN in wrapped environments.
authorVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Sun, 14 Nov 2010 12:37:59 +0000 (13:37 +0100)
committerVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Sun, 14 Nov 2010 12:37:59 +0000 (13:37 +0100)
* grub-core/lib/libgcrypt_wrap/cipher_wrap.h (WORDS_BIGENDIAN): New
definition.
* grub-core/lib/posix_wrap/sys/types.h (WORDS_BIGENDIAN): Likewise.

Reported by: Manoel Rebelo Abranches.
Tested by: Manoel Rebelo Abranches.

ChangeLog
grub-core/lib/libgcrypt_wrap/cipher_wrap.h
grub-core/lib/posix_wrap/sys/types.h

index 7aa53554845d8579a153558275d207a16186e0d9..e87dd9ff430edbc9a6dab2e24457484a19d234a0 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,14 @@
+2010-11-14  Vladimir Serbinenko  <phcoder@gmail.com>
+
+       Properly define WORDS_BIGENDIAN in wrapped environments.
+
+       * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (WORDS_BIGENDIAN): New
+       definition.
+       * grub-core/lib/posix_wrap/sys/types.h (WORDS_BIGENDIAN): Likewise.
+
+       Reported by: Manoel Rebelo Abranches.
+       Tested by: Manoel Rebelo Abranches.
+
 2010-11-13  Vladimir Serbinenko  <phcoder@gmail.com>
 
        * util/grub-mkconfig.in: Fix quoting.
index b4530c11236075bfbe608908d244053f5d8172bf..59febaeb5ed3755e741420b37583e42b3030ef8b 100644 (file)
 #include <grub/dl.h>
 #include <grub/crypto.h>
 
+#ifdef GRUB_CPU_WORDS_BIGENDIAN
+#define WORDS_BIGENDIAN
+#else
+#undef WORDS_BIGENDIAN
+#endif
+
 #define __GNU_LIBRARY__
 
 #define DIM ARRAY_SIZE
index 28e3547591a36c145678ef7e9abbf3926bab7860..4e8331fdda2bc635fcd294177270f70a3655b4f8 100644 (file)
@@ -32,4 +32,10 @@ typedef grub_uint16_t uint16_t;
 typedef grub_uint32_t uint32_t;
 typedef grub_uint64_t uint64_t;
 
+#ifdef GRUB_CPU_WORDS_BIGENDIAN
+#define WORDS_BIGENDIAN
+#else
+#undef WORDS_BIGENDIAN
+#endif
+
 #endif