aboutsummaryrefslogtreecommitdiff
path: root/libiberty/sort.c
diff options
context:
space:
mode:
authorPhilippe De Muyter <phdm@macqel.be>2000-05-04 17:40:25 +0200
committerPhilippe De Muyter <phdm@gcc.gnu.org>2000-05-04 15:40:25 +0000
commit4aef973c2eae349b95773374d2f8afd0dded3e56 (patch)
tree8355a2a34485eb8d1c6612a2afbe686d538b5317 /libiberty/sort.c
parent6b151aa7066643b8e54fb1ba6025001e12d69a4a (diff)
sort.h (sys/types.h): File included unconditionnaly.
* sort.h (sys/types.h): File included unconditionnaly. (stddef.h): File include only #ifdef __STDC__. * sort.c (UCHAR_MAX): Provide fallback definition. From-SVN: r33670
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. */