From d90bac3888b5f0f2dcd72dfeeb8460008cb71161 Mon Sep 17 00:00:00 2001 From: Mathieu Rene Date: Fri, 15 Jul 2011 11:42:48 -0400 Subject: [PATCH] The format string for size_t is always %zu, don't #error when not able to find it --- configure.in | 2 +- libs/apr/configure.in | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/configure.in b/configure.in index 43839a3f8b..6a7d7dec4d 100644 --- a/configure.in +++ b/configure.in @@ -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 diff --git a/libs/apr/configure.in b/libs/apr/configure.in index 04f6e8f506..68c030e124 100644 --- a/libs/apr/configure.in +++ b/libs/apr/configure.in @@ -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 ], off_t, 8)