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
This commit is contained in:
Philippe De Muyter 2000-05-04 17:40:25 +02:00 committed by Philippe De Muyter
parent 6b151aa706
commit 4aef973c2e
4 changed files with 16 additions and 0 deletions

View File

@ -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.

View File

@ -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" {

View File

@ -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

View File

@ -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. */