From: Simon Ruderich Date: Mon, 10 Jun 2013 19:27:12 +0000 (+0200) Subject: Fix compilation with clang. X-Git-Tag: 0.1~73 X-Git-Url: https://ruderich.org/simon/gitweb/?a=commitdiff_plain;h=779ba750f7faa68c594339399cb710ca362b3465;p=coloredstderr%2Fcoloredstderr.git Fix compilation with clang. --- diff --git a/src/coloredstderr.c b/src/coloredstderr.c index d4ffdb6..cc58883 100644 --- a/src/coloredstderr.c +++ b/src/coloredstderr.c @@ -38,6 +38,11 @@ /* Conflicting declaration in glibc. */ #undef fwrite_unlocked +/* These functions may be macros when compiling with hardening flags (fortify) + * which cause build failures when used in our hook macros below. Observed + * with Clang on Debian Wheezy. */ +#undef printf +#undef fprintf /* Used by various functions, including debug(). */