1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-22 08:08:50 -05:00

Simplify condition check

This commit is contained in:
Yang Tse 2008-08-20 23:29:07 +00:00
parent 473a050f0b
commit 1c68e79091
2 changed files with 9 additions and 26 deletions

View File

@ -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
/*

View File

@ -18,20 +18,13 @@
int curl_msprintf(char *buffer, const char *format, ...);
#if (CURL_SIZEOF_CURL_OFF_T > 4)
# if (CURL_SIZEOF_LONG > 4)
# define MPRNT_SUFFIX_CURL_OFF_T L
# else
# define MPRNT_SUFFIX_CURL_OFF_T LL
# endif
#if (CURL_SIZEOF_CURL_OFF_T > CURL_SIZEOF_LONG)
# define MPRNT_SUFFIX_CURL_OFF_T LL
#else
# if (CURL_SIZEOF_LONG > 2)
# define MPRNT_SUFFIX_CURL_OFF_T L
# else
# define MPRNT_SUFFIX_CURL_OFF_T LL
# endif
# define MPRNT_SUFFIX_CURL_OFF_T L
#endif
#ifdef CURL_ISOCPP
# define MPRNT_OFF_T_C_HELPER2(Val,Suffix) Val ## Suffix
#else