Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Johnston <jjohnstn@redhat.com>2002-07-02 22:18:58 +0400
committerJeff Johnston <jjohnstn@redhat.com>2002-07-02 22:18:58 +0400
commitcec4a9f8f00e58c2486849aa0cf784b84a411beb (patch)
treeae3d9daebd3a3c5501497beab441a1bf27737092 /newlib/libc/search/hash_page.c
parentd183515c9fa35681286cbdf02da37845648cef0b (diff)
2002-07-02 Chris Demetriou <cgd@broadcom.com>
* libc/include/sys/config.h (__IEEE_LITTLE_ENDIAN) (__IEEE_BIG_ENDIAN): Define appropriately for MIPS. Check that one of them is defined and error out if not. Add any platforms defined in <machine/ieeefp.h> that are missing. * libc/search/hash.h (DB_BYTE_ORDER, DB_BIG_ENDIAN) (DB_LITTLE_ENDIAN): New defines. * libc/search/hash.c: Replace all incorrect checks for _IEEE_LITTLE_ENDIAN with tests of BYTE_ORDER, and all uses of BYTE_ORDER, LITTLE_ENDIAN, and BIG_ENDIAN with DB_* versions. * libc/search/hash_page.c: Likewise.
Diffstat (limited to 'newlib/libc/search/hash_page.c')
-rw-r--r--newlib/libc/search/hash_page.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/newlib/libc/search/hash_page.c b/newlib/libc/search/hash_page.c
index 896aee8d5..cffb20aa3 100644
--- a/newlib/libc/search/hash_page.c
+++ b/newlib/libc/search/hash_page.c
@@ -552,7 +552,7 @@ __get_page(hashp, p, bucket, is_bucket, is_disk, is_bitmap)
if (!is_bitmap && !bp[0]) {
PAGE_INIT(p);
} else
- if (hashp->LORDER != BYTE_ORDER) {
+ if (hashp->LORDER != DB_BYTE_ORDER) {
int i, max;
if (is_bitmap) {
@@ -591,7 +591,7 @@ __put_page(hashp, p, bucket, is_bucket, is_bitmap)
return (-1);
fd = hashp->fp;
- if (hashp->LORDER != BYTE_ORDER) {
+ if (hashp->LORDER != DB_BYTE_ORDER) {
int i;
int max;