Autoconfigure whether char is unsigned.
This commit is contained in:
parent
c9589a89fb
commit
b316861e9d
2 changed files with 11 additions and 4 deletions
|
@ -76,6 +76,8 @@ LIBS=$save_LIBS
|
||||||
|
|
||||||
### Checks for typedefs, structures, and compiler characteristics
|
### Checks for typedefs, structures, and compiler characteristics
|
||||||
|
|
||||||
|
AC_C_CHAR_UNSIGNED
|
||||||
|
|
||||||
|
|
||||||
### Checks for library functions
|
### Checks for library functions
|
||||||
|
|
||||||
|
|
|
@ -99,11 +99,16 @@ struct mob_acc_globals {
|
||||||
|
|
||||||
typedef u_char natid; /* NSC_NATID must match this */
|
typedef u_char natid; /* NSC_NATID must match this */
|
||||||
|
|
||||||
#if !defined(aix) && !defined(sgi)
|
/*
|
||||||
typedef char s_char; /* change to signed char for aix */
|
* TODO s_char has to go. Use plain char for characters and strings,
|
||||||
#else
|
* signed char for small integers.
|
||||||
|
*/
|
||||||
|
#ifdef __CHAR_UNSIGNED__
|
||||||
typedef signed char s_char;
|
typedef signed char s_char;
|
||||||
#endif /* !aix && !sgi */
|
#else
|
||||||
|
typedef char s_char;
|
||||||
|
#endif
|
||||||
|
|
||||||
typedef short coord;
|
typedef short coord;
|
||||||
|
|
||||||
#ifndef bit
|
#ifndef bit
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue