]> granicus.if.org Git - mutt/commitdiff
Make sure that fgets and fgetc are undefined before their redefinition.
authorVincent Lefevre <vincent@vinc17.net>
Thu, 9 Nov 2017 14:06:19 +0000 (15:06 +0100)
committerVincent Lefevre <vincent@vinc17.net>
Thu, 9 Nov 2017 14:06:19 +0000 (15:06 +0100)
This fixes a potential issue from changeset e0a103845344.

mutt.h

diff --git a/mutt.h b/mutt.h
index 9d3183020b5886f48c11062b6d327981d1797145..9576708974523bd5046e7a4e0afd1fa0cc83cda0 100644 (file)
--- a/mutt.h
+++ b/mutt.h
 #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