wpa_supplicant: if printf is a macro, #ifdefs inside are not good

Cristian Ionescu-Idbohrn cristian.ionescu-idbohrn
Mon Jan 12 14:42:09 PST 2009


I got this patch from one of my knowlegeable colleagues.  Thoughts?
Comments?

-	printf("%s\n\n%s\n"
+	/* Printf can be a macro, but no preprocessor directives are
+	   allowed in a macro parameter list.  However, printf is
+	   required to also exist as a function, so let's force it to
+	   not being recognized as a macro with parameters. */
+	(printf)("%s\n\n%s\n"


Cheers,

-- 
Cristian



More information about the Hostap mailing list