Simplify condition check
This commit is contained in:
12
lib/setup.h
12
lib/setup.h
@@ -135,22 +135,12 @@
|
|||||||
Error Compilation_aborted_FORMAT_OFF_TU_already_defined
|
Error Compilation_aborted_FORMAT_OFF_TU_already_defined
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if (CURL_SIZEOF_CURL_OFF_T > 4)
|
#if (CURL_SIZEOF_CURL_OFF_T > CURL_SIZEOF_LONG)
|
||||||
# if (CURL_SIZEOF_LONG > 4)
|
|
||||||
# define FORMAT_OFF_T "ld"
|
|
||||||
# define FORMAT_OFF_TU "lu"
|
|
||||||
# else
|
|
||||||
# define FORMAT_OFF_T "lld"
|
# define FORMAT_OFF_T "lld"
|
||||||
# define FORMAT_OFF_TU "llu"
|
# define FORMAT_OFF_TU "llu"
|
||||||
# endif
|
|
||||||
#else
|
#else
|
||||||
# if (CURL_SIZEOF_LONG > 2)
|
|
||||||
# define FORMAT_OFF_T "ld"
|
# define FORMAT_OFF_T "ld"
|
||||||
# define FORMAT_OFF_TU "lu"
|
# define FORMAT_OFF_TU "lu"
|
||||||
# else
|
|
||||||
# define FORMAT_OFF_T "lld"
|
|
||||||
# define FORMAT_OFF_TU "llu"
|
|
||||||
# endif
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|||||||
@@ -18,20 +18,13 @@
|
|||||||
int curl_msprintf(char *buffer, const char *format, ...);
|
int curl_msprintf(char *buffer, const char *format, ...);
|
||||||
|
|
||||||
|
|
||||||
#if (CURL_SIZEOF_CURL_OFF_T > 4)
|
#if (CURL_SIZEOF_CURL_OFF_T > CURL_SIZEOF_LONG)
|
||||||
# if (CURL_SIZEOF_LONG > 4)
|
|
||||||
# define MPRNT_SUFFIX_CURL_OFF_T L
|
|
||||||
# else
|
|
||||||
# define MPRNT_SUFFIX_CURL_OFF_T LL
|
# define MPRNT_SUFFIX_CURL_OFF_T LL
|
||||||
# endif
|
|
||||||
#else
|
#else
|
||||||
# if (CURL_SIZEOF_LONG > 2)
|
|
||||||
# define MPRNT_SUFFIX_CURL_OFF_T L
|
# define MPRNT_SUFFIX_CURL_OFF_T L
|
||||||
# else
|
|
||||||
# define MPRNT_SUFFIX_CURL_OFF_T LL
|
|
||||||
# endif
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
#ifdef CURL_ISOCPP
|
#ifdef CURL_ISOCPP
|
||||||
# define MPRNT_OFF_T_C_HELPER2(Val,Suffix) Val ## Suffix
|
# define MPRNT_OFF_T_C_HELPER2(Val,Suffix) Val ## Suffix
|
||||||
#else
|
#else
|
||||||
|
|||||||
Reference in New Issue
Block a user