Autoconfigure whether char is unsigned.

This commit is contained in:
Markus Armbruster 2005-12-28 23:10:26 +00:00
parent c9589a89fb
commit b316861e9d
2 changed files with 11 additions and 4 deletions

View file

@ -76,6 +76,8 @@ LIBS=$save_LIBS
### Checks for typedefs, structures, and compiler characteristics
AC_C_CHAR_UNSIGNED
### Checks for library functions

View file

@ -99,11 +99,16 @@ struct mob_acc_globals {
typedef u_char natid; /* NSC_NATID must match this */
#if !defined(aix) && !defined(sgi)
typedef char s_char; /* change to signed char for aix */
#else
/*
* TODO s_char has to go. Use plain char for characters and strings,
* signed char for small integers.
*/
#ifdef __CHAR_UNSIGNED__
typedef signed char s_char;
#endif /* !aix && !sgi */
#else
typedef char s_char;
#endif
typedef short coord;
#ifndef bit