mirror of
https://github.com/curl/curl.git
synced 2025-01-18 14:04:30 +08:00
Dan fixed the CURL_DISABLE_VERBOSE_STRINGS stuff for older gcc versions since
they don't support C99 varargs macros.
This commit is contained in:
parent
fd64213c2f
commit
dcb5a4df01
@ -30,9 +30,11 @@ void Curl_failf(struct SessionHandle *, const char *fmt, ...);
|
|||||||
|
|
||||||
#if defined(CURL_DISABLE_VERBOSE_STRINGS)
|
#if defined(CURL_DISABLE_VERBOSE_STRINGS)
|
||||||
#if defined(__GNUC__)
|
#if defined(__GNUC__)
|
||||||
/* Variable argument macros is a C99 feature long supported by gcc */
|
/* This style of variable argument macros is a gcc extension */
|
||||||
#define infof(...) /*ignore*/
|
#define infof(x...) /*ignore*/
|
||||||
#else
|
#else
|
||||||
|
/* C99 compilers could use this if we could detect them */
|
||||||
|
/*#define infof(...) */
|
||||||
/* Cast the args to void to make them a noop, side effects notwithstanding */
|
/* Cast the args to void to make them a noop, side effects notwithstanding */
|
||||||
#define infof (void)
|
#define infof (void)
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user