|
@@ -3833,14 +3833,14 @@ type
|
|
|
valuedescr: String;
|
|
|
begin
|
|
|
if assigned(preprocstack) and
|
|
|
- (preprocstack.typ in [pp_if,pp_elseif]) then
|
|
|
+ (preprocstack.typ in [pp_if,pp_ifdef,pp_ifndef,pp_elseif]) then
|
|
|
begin
|
|
|
{ when the branch is accepted we use pp_elseif so we know that
|
|
|
all the next branches need to be rejected. when this branch is still
|
|
|
not accepted then leave it at pp_if }
|
|
|
if (preprocstack.typ=pp_elseif) then
|
|
|
preprocstack.accept:=false
|
|
|
- else if (preprocstack.typ=pp_if) and preprocstack.accept then
|
|
|
+ else if (preprocstack.typ in [pp_if,pp_ifdef,pp_ifndef]) and preprocstack.accept then
|
|
|
begin
|
|
|
preprocstack.accept:=false;
|
|
|
preprocstack.typ:=pp_elseif;
|