]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Fix minor typo in #ifdef docuementation
authorAndrew Pinski <quic_apinski@quicinc.com>
Thu, 24 Jul 2025 16:26:38 +0000 (09:26 -0700)
committerAndrew Pinski <quic_apinski@quicinc.com>
Thu, 24 Jul 2025 16:32:46 +0000 (09:32 -0700)
As reported in https://gcc.gnu.org/pipermail/gcc/2025-July/246417.html,
This fixes the minor typo under the #ifdef documentation about adding
MACRO after the #endif and the MACRO matching of the #ifdef. It had `#ifndef`
in it, rather than `#ifdef`.

Pushed as obvious.

gcc/ChangeLog:

* doc/cpp.texi (#ifdef): Correct typo.

Signed-off-by: Andrew Pinski <quic_apinski@quicinc.com>
gcc/doc/cpp.texi

index fc607926019a3fcea1dde2d74970ac0782e7395b..cc1656f41362c4422725a6bdb14f52cf5fb082ed 100644 (file)
@@ -3252,7 +3252,7 @@ helps people match the @samp{#endif} to the corresponding @samp{#ifdef}.
 Older programs sometimes put @var{MACRO} directly after the
 @samp{#endif} without enclosing it in a comment.  This is invalid code
 according to the C standard.  CPP accepts it with a warning.  It
-never affects which @samp{#ifndef} the @samp{#endif} matches.
+never affects which @samp{#ifdef} the @samp{#endif} matches.
 
 @findex #ifndef
 Sometimes you wish to use some code if a macro is @emph{not} defined.