h2pas: removing } in #ifdef __cplusplus

git-svn-id: trunk@14119 -
This commit is contained in:
mattias 2008-02-13 14:25:00 +00:00
parent 6dafadd176
commit 11cb3a860e

View File

@ -2282,7 +2282,9 @@ begin
if Line='extern "C" {' then begin
Lines[i]:='';
end
else if (i>0) and (Line='}') and (Lines[i-1]='#if defined(__cplusplus)')
else if (i>0) and (Line='}')
and ((Lines[i-1]='#if defined(__cplusplus)')
or (Lines[i-1]='#ifdef __cplusplus'))
then begin
Lines[i]:='';
end;