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 /libiberty/sort.c | |
parent | 85f8461adf4225217f78f8a9d2a66fc0a6962cb1 (diff) | |
download | gcc-fb0c90edba18e44b6c7fefdd9fec99b28a97540c.tar.gz |
* 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
Diffstat (limited to 'libiberty/sort.c')
-rw-r--r-- | libiberty/sort.c | 4 |
1 files changed, 4 insertions, 0 deletions
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. */ |