diff options
author | Thomas Fitzsimmons <fitzsim@redhat.com> | 2002-06-21 19:09:50 +0000 |
---|---|---|
committer | Thomas Fitzsimmons <fitzsim@redhat.com> | 2002-06-21 19:09:50 +0000 |
commit | 930bc96b4a9825e8b7c9d602dae0a0d79bde4ae9 (patch) | |
tree | 280962c74fa2b06da0646b03e31e9a31eb893b83 | |
parent | 55105f8660765dfc0e48a4c6005eba93f49c3fe1 (diff) | |
download | newlib-930bc96b4a9825e8b7c9d602dae0a0d79bde4ae9.zip newlib-930bc96b4a9825e8b7c9d602dae0a0d79bde4ae9.tar.gz newlib-930bc96b4a9825e8b7c9d602dae0a0d79bde4ae9.tar.bz2 |
* libc/search/hash.h (LITTLE_ENDIAN, BIG_ENDIAN): Define if not
previously defined.
-rw-r--r-- | newlib/ChangeLog | 6 | ||||
-rw-r--r-- | newlib/libc/search/hash.h | 6 |
2 files changed, 11 insertions, 1 deletions
diff --git a/newlib/ChangeLog b/newlib/ChangeLog index 47c510a..a744d67 100644 --- a/newlib/ChangeLog +++ b/newlib/ChangeLog @@ -1,3 +1,8 @@ +2002-06-21 Thomas Fitzsimmons <fitzsim@redhat.com> + + * libc/search/hash.h (LITTLE_ENDIAN, BIG_ENDIAN): Define if not + previously defined. + 2002-06-21 Richard Earnshaw (rearnsha@arm.com) * libc/sys/arm/sys/param.h (BIG_ENDIAN, LITTLE_ENDIAN): Define. @@ -81,7 +86,6 @@ * libc/search/hash_page.c: New file. * libc/search/hcreate.3: New file. * libc/search/hcreate.c: New file. - * libc/search/hcreate.c~: New file. * libc/search/hcreate_r.c: New file. * libc/search/ndbm.c: New file. * libc/search/page.h: New file. diff --git a/newlib/libc/search/hash.h b/newlib/libc/search/hash.h index d92d1ed..8287eb7 100644 --- a/newlib/libc/search/hash.h +++ b/newlib/libc/search/hash.h @@ -40,6 +40,12 @@ #include <sys/param.h> #ifndef BYTE_ORDER +#ifndef LITTLE_ENDIAN +#define LITTLE_ENDIAN 1234 +#endif +#ifndef BIG_ENDIAN +#define BIG_ENDIAN 4321 +#endif #ifdef __IEEE_LITTLE_ENDIAN #define BYTE_ORDER LITTLE_ENDIAN #else |