mirror of
https://github.com/Unidata/netcdf-c.git
synced 2025-01-18 15:55:12 +08:00
Merge branch 'typedef_schar' of https://github.com/wkliao/netcdf-c into ejh_more_merges
This commit is contained in:
commit
178ed4aa98
@ -871,7 +871,7 @@ AC_FUNC_ALLOCA
|
||||
AC_CHECK_DECLS([isnan, isinf, isfinite, signbit],,,[#include <math.h>])
|
||||
AC_STRUCT_ST_BLKSIZE
|
||||
UD_CHECK_IEEE
|
||||
AC_CHECK_TYPES([size_t, ssize_t, ptrdiff_t, uchar, longlong, ushort, uint, int64, uint64 off_t])
|
||||
AC_CHECK_TYPES([size_t, ssize_t, ptrdiff_t, schar, uchar, longlong, ushort, uint, int64, uint64 off_t])
|
||||
AC_TYPE_SIZE_T
|
||||
AC_TYPE_OFF_T
|
||||
AC_C_CHAR_UNSIGNED
|
||||
|
10
libsrc/ncx.h
10
libsrc/ncx.h
@ -156,15 +156,9 @@
|
||||
|
||||
/* End ncx_len */
|
||||
|
||||
#ifdef __CHAR_UNSIGNED__
|
||||
/* 'char' is unsigned, declare ncbyte as 'signed char' */
|
||||
#ifndef HAVE_SCHAR
|
||||
typedef signed char schar;
|
||||
|
||||
#else
|
||||
/* 'char' is signed */
|
||||
typedef char schar;
|
||||
|
||||
#endif /* __CHAR_UNSIGNED__ */
|
||||
#endif
|
||||
|
||||
/*
|
||||
* Primitive numeric conversion functions.
|
||||
|
Loading…
Reference in New Issue
Block a user