Browse Source

External declarations are now only marked as such when being generated.

pull/228/merge
marcos henrich 11 years ago committed by triton
parent
commit
df7319d8bc
  1. 2
      src/Generator/Passes/CleanUnitPass.cs

2
src/Generator/Passes/CleanUnitPass.cs

@ -13,7 +13,7 @@ namespace CppSharp.Passes @@ -13,7 +13,7 @@ namespace CppSharp.Passes
public override bool VisitTranslationUnit(TranslationUnit unit)
{
if (IsExternalDeclaration(unit))
if (IsExternalDeclaration(unit) && unit.IsGenerated)
unit.GenerationKind = GenerationKind.Link;
// Try to get an include path that works from the original include

Loading…
Cancel
Save