From 1c68e790919cc36331ac5a1e70be5c54f1c6c9d7 Mon Sep 17 00:00:00 2001 From: Yang Tse Date: Wed, 20 Aug 2008 23:29:07 +0000 Subject: Simplify condition check --- lib/setup.h | 20 +++++--------------- 1 file changed, 5 insertions(+), 15 deletions(-) (limited to 'lib') diff --git a/lib/setup.h b/lib/setup.h index dcd021851..9cf3d8f31 100644 --- a/lib/setup.h +++ b/lib/setup.h @@ -135,22 +135,12 @@ Error Compilation_aborted_FORMAT_OFF_TU_already_defined #endif -#if (CURL_SIZEOF_CURL_OFF_T > 4) -# if (CURL_SIZEOF_LONG > 4) -# define FORMAT_OFF_T "ld" -# define FORMAT_OFF_TU "lu" -# else -# define FORMAT_OFF_T "lld" -# define FORMAT_OFF_TU "llu" -# endif +#if (CURL_SIZEOF_CURL_OFF_T > CURL_SIZEOF_LONG) +# define FORMAT_OFF_T "lld" +# define FORMAT_OFF_TU "llu" #else -# if (CURL_SIZEOF_LONG > 2) -# define FORMAT_OFF_T "ld" -# define FORMAT_OFF_TU "lu" -# else -# define FORMAT_OFF_T "lld" -# define FORMAT_OFF_TU "llu" -# endif +# define FORMAT_OFF_T "ld" +# define FORMAT_OFF_TU "lu" #endif /* -- cgit v1.2.3