Skip to content
Snippets Groups Projects
Commit dcb5a4df authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

Dan fixed the CURL_DISABLE_VERBOSE_STRINGS stuff for older gcc versions since

they don't support C99 varargs macros.
parent fd64213c
No related branches found
No related tags found
No related merge requests found
......@@ -30,9 +30,11 @@ void Curl_failf(struct SessionHandle *, const char *fmt, ...);
#if defined(CURL_DISABLE_VERBOSE_STRINGS)
#if defined(__GNUC__)
/* Variable argument macros is a C99 feature long supported by gcc */
#define infof(...) /*ignore*/
/* This style of variable argument macros is a gcc extension */
#define infof(x...) /*ignore*/
#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 */
#define infof (void)
#endif
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment