From: Vincent Lefevre Date: Thu, 9 Nov 2017 14:06:19 +0000 (+0100) Subject: Make sure that fgets and fgetc are undefined before their redefinition. X-Git-Tag: mutt-1-10-rel~122 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6db8d16a36f732771532cad68ce0e3bfc6bbf5a0;p=mutt Make sure that fgets and fgetc are undefined before their redefinition. This fixes a potential issue from changeset e0a103845344. --- diff --git a/mutt.h b/mutt.h index 9d318302..95767089 100644 --- a/mutt.h +++ b/mutt.h @@ -72,10 +72,16 @@ #endif #ifdef HAVE_FGETS_UNLOCKED +# ifdef fgets +# undef fgets +# endif # define fgets fgets_unlocked #endif #ifdef HAVE_FGETC_UNLOCKED +# ifdef fgetc +# undef fgetc +# endif # define fgetc fgetc_unlocked #endif