diff options
author | phdm <phdm@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-05-04 15:40:25 +0000 |
---|---|---|
committer | phdm <phdm@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-05-04 15:40:25 +0000 |
commit | fb0c90edba18e44b6c7fefdd9fec99b28a97540c (patch) | |
tree | 8355a2a34485eb8d1c6612a2afbe686d538b5317 | |
parent | 85f8461adf4225217f78f8a9d2a66fc0a6962cb1 (diff) | |
download | ppe42-gcc-fb0c90edba18e44b6c7fefdd9fec99b28a97540c.tar.gz ppe42-gcc-fb0c90edba18e44b6c7fefdd9fec99b28a97540c.zip |
* sort.h (sys/types.h): File included unconditionnaly.
(stddef.h): File include only #ifdef __STDC__.
* sort.c (UCHAR_MAX): Provide fallback definition.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@33670 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r-- | include/ChangeLog | 5 | ||||
-rw-r--r-- | include/sort.h | 3 | ||||
-rw-r--r-- | libiberty/ChangeLog | 4 | ||||
-rw-r--r-- | libiberty/sort.c | 4 |
4 files changed, 16 insertions, 0 deletions
diff --git a/include/ChangeLog b/include/ChangeLog index 1329b0fce72..f448555417e 100644 --- a/include/ChangeLog +++ b/include/ChangeLog @@ -1,3 +1,8 @@ +Thu May 4 17:15:26 2000 Philippe De Muyter <phdm@macqel.be> + + * sort.h (sys/types.h): File included unconditionnaly. + (stddef.h): File include only #ifdef __STDC__. + 2000-05-03 Zack Weinberg <zack@wolery.cumb.org> * symcat.h: Remove #endif label. diff --git a/include/sort.h b/include/sort.h index c20575707a0..c8e1d5547d1 100644 --- a/include/sort.h +++ b/include/sort.h @@ -22,7 +22,10 @@ Boston, MA 02111-1307, USA. */ #ifndef SORT_H #define SORT_H +#include <sys/types.h> /* For size_t */ +#ifdef __STDC__ #include <stddef.h> +#endif /* __STDC__ */ #ifdef __cplusplus extern "C" { diff --git a/libiberty/ChangeLog b/libiberty/ChangeLog index 77cbf4faa01..7dc83320d23 100644 --- a/libiberty/ChangeLog +++ b/libiberty/ChangeLog @@ -1,3 +1,7 @@ +Thu May 4 17:14:41 2000 Philippe De Muyter <phdm@macqel.be> + + * sort.c (UCHAR_MAX): Provide fallback definition. + 2000-04-29 Alexandre Oliva <aoliva@cygnus.com> * Makefile.in (maintainer-clean-subdir): Fix handling of empty diff --git a/libiberty/sort.c b/libiberty/sort.c index 4fd3ef9b98e..b66a9e1e856 100644 --- a/libiberty/sort.c +++ b/libiberty/sort.c @@ -29,6 +29,10 @@ Boston, MA 02111-1307, USA. */ #include <stdlib.h> #endif +#ifndef UCHAR_MAX +#define UCHAR_MAX ((unsigned char)(-1)) +#endif + /* POINTERS and WORK are both arrays of N pointers. When this function returns POINTERS will be sorted in ascending order. */ |