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_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
|
||||||
|
10
libsrc/ncx.h
10
libsrc/ncx.h
@ -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.
|
||||||
|
Loading…
Reference in New Issue
Block a user