Merge branch 'typedef_schar' of https://github.com/wkliao/netcdf-c into ejh_more_merges

This commit is contained in:
Ward Fisher 2017-10-26 14:35:57 -06:00
commit 178ed4aa98
2 changed files with 3 additions and 9 deletions

View File

@ -871,7 +871,7 @@ AC_FUNC_ALLOCA
AC_CHECK_DECLS([isnan, isinf, isfinite, signbit],,,[#include <math.h>]) AC_CHECK_DECLS([isnan, isinf, isfinite, signbit],,,[#include <math.h>])
AC_STRUCT_ST_BLKSIZE AC_STRUCT_ST_BLKSIZE
UD_CHECK_IEEE 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_SIZE_T
AC_TYPE_OFF_T AC_TYPE_OFF_T
AC_C_CHAR_UNSIGNED AC_C_CHAR_UNSIGNED

View File

@ -156,15 +156,9 @@
/* End ncx_len */ /* End ncx_len */
#ifdef __CHAR_UNSIGNED__ #ifndef HAVE_SCHAR
/* 'char' is unsigned, declare ncbyte as 'signed char' */
typedef signed char schar; typedef signed char schar;
#endif
#else
/* 'char' is signed */
typedef char schar;
#endif /* __CHAR_UNSIGNED__ */
/* /*
* Primitive numeric conversion functions. * Primitive numeric conversion functions.