summaryrefslogtreecommitdiff
path: root/libiberty/sort.c
diff options
context:
space:
mode:
authorphdm <phdm@138bc75d-0d04-0410-961f-82ee72b054a4>2000-05-04 15:40:25 +0000
committerphdm <phdm@138bc75d-0d04-0410-961f-82ee72b054a4>2000-05-04 15:40:25 +0000
commitfb0c90edba18e44b6c7fefdd9fec99b28a97540c (patch)
tree8355a2a34485eb8d1c6612a2afbe686d538b5317 /libiberty/sort.c
parent85f8461adf4225217f78f8a9d2a66fc0a6962cb1 (diff)
downloadgcc-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.c4
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. */