Support powerpc with GCC that defines __PPC__ but not __powerpc__.

* config.h.in (__powerpc__) [__PPC__ && !__powerpc__]: New definition.
	* grub-core/lib/setjmp.S: Treat __PPC__ as equivalent to __powerpc__.
This commit is contained in:
Vladimir 'phcoder' Serbinenko committed 2012-01-18 14:04:52 +01:00
1 parent 34e4208ffe
commit d43a777e45
3 files changed
+11 -1

No files matched your search

+3
View File
@@ -2,6 +2,9 @@
#undef _FILE_OFFSET_BITS
#define _LARGEFILE_SOURCE
#define _FILE_OFFSET_BITS 64
#if defined(__PPC__) && !defined(__powerpc__)
#define __powerpc__ 1
#endif
#if defined (GRUB_UTIL) || !defined (GRUB_MACHINE)
#include <config-util.h>
#define NESTED_FUNC_ATTR