зеркало из https://github.com/mozilla/gecko-dev.git
Deleted the code that sets BYTE_ORDER to LITTLE_ENDIAN on Linux, whic
on big-endian machines. Use __osf__ instead of __alpha to identify Digital Unix, which has <machine/endian.h>. Files changed: mozilla/include/mcom_db.h, mozilla/dbm/include/mcom_db.h.
This commit is contained in:
Родитель
1c55aaf8d0
Коммит
1b8f8755bf
|
@ -397,12 +397,6 @@ void __dbpanic (DB *dbp);
|
|||
|
||||
__END_DECLS
|
||||
|
||||
#ifdef linux
|
||||
#if BYTE_ORDER != LITTLE_ENDIAN
|
||||
#define BYTE_ORDER LITTLE_ENDIAN
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#if defined(__hpux) || defined(__hppa)
|
||||
#define BYTE_ORDER BIG_ENDIAN
|
||||
#define BIG_ENDIAN 4321
|
||||
|
@ -419,8 +413,9 @@ __END_DECLS
|
|||
#include <sys/machine.h>
|
||||
#endif
|
||||
|
||||
#ifdef __alpha
|
||||
#include <endian.h>
|
||||
/* Digital Unix */
|
||||
#ifdef __osf__
|
||||
#include <machine/endian.h>
|
||||
#endif
|
||||
|
||||
#endif /* !_DB_H_ */
|
||||
|
|
|
@ -416,15 +416,6 @@ void __dbpanic (DB *dbp);
|
|||
|
||||
__END_DECLS
|
||||
|
||||
#if defined(linux) && !defined(MKLINUX) && !defined(__mc68000__)
|
||||
/*
|
||||
* Why you would want to override the system defines?
|
||||
*/
|
||||
#if BYTE_ORDER != LITTLE_ENDIAN
|
||||
#define BYTE_ORDER LITTLE_ENDIAN
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#if defined(__hpux) || defined(__hppa)
|
||||
#define BYTE_ORDER BIG_ENDIAN
|
||||
#define BIG_ENDIAN 4321
|
||||
|
@ -436,8 +427,9 @@ __END_DECLS
|
|||
#include <sys/machine.h>
|
||||
#endif
|
||||
|
||||
#ifdef __alpha
|
||||
#include <endian.h>
|
||||
/* Digital Unix */
|
||||
#ifdef __osf__
|
||||
#include <machine/endian.h>
|
||||
#endif
|
||||
|
||||
#endif /* !_DB_H_ */
|
||||
|
|
Загрузка…
Ссылка в новой задаче