From 6db8d16a36f732771532cad68ce0e3bfc6bbf5a0 Mon Sep 17 00:00:00 2001 From: Vincent Lefevre Date: Thu, 9 Nov 2017 15:06:19 +0100 Subject: [PATCH] Make sure that fgets and fgetc are undefined before their redefinition. This fixes a potential issue from changeset e0a103845344. --- mutt.h | 6 ++++++ 1 file changed, 6 insertions(+) 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 -- 2.50.1