The format string for size_t is always %zu, don't #error when not able to find it

This commit is contained in:
Mathieu Rene 2011-07-15 11:42:48 -04:00
parent c18c2b1dc0
commit d90bac3888
2 changed files with 2 additions and 2 deletions

View File

@ -699,7 +699,7 @@ if test "$ac_cv_sizeof_size_t" = "$ac_cv_sizeof_int"; then
elif test "$ac_cv_sizeof_size_t" = "$ac_cv_sizeof_long"; then
size_t_fmt='#define SWITCH_SIZE_T_FMT "ld"'
else
size_t_fmt='#error Can not determine the proper size for size_t'
size_t_fmt='#define SWITCH_SIZE_T_FMT "zu"'
fi
# Basically, we have tried to figure out the correct format strings

View File

@ -1284,7 +1284,7 @@ if test "$ac_cv_sizeof_size_t" = "$ac_cv_sizeof_int"; then
elif test "$ac_cv_sizeof_size_t" = "$ac_cv_sizeof_long"; then
size_t_fmt='#define APR_SIZE_T_FMT "ld"'
else
size_t_fmt='#error Can not determine the proper size for size_t'
size_t_fmt='#define APR_SIZE_T_FMT "zu"'
fi
APR_CHECK_SIZEOF_EXTENDED([#include <sys/types.h>], off_t, 8)