diff --git a/src/Generator/Driver.cs b/src/Generator/Driver.cs index 8cd000ca..11c97cc9 100644 --- a/src/Generator/Driver.cs +++ b/src/Generator/Driver.cs @@ -169,6 +169,7 @@ namespace Cxxi public bool Verbose = false; public bool ShowHelpText = false; public bool OutputDebug = false; + public bool OutputInteropIncludes = true; public bool GenerateLibraryNamespace; public string OutputNamespace; public string OutputDir; diff --git a/src/Generator/Generators/CLI/CLISourcesTemplate.cs b/src/Generator/Generators/CLI/CLISourcesTemplate.cs index 8a3ad61b..dd8ded65 100644 --- a/src/Generator/Generators/CLI/CLISourcesTemplate.cs +++ b/src/Generator/Generators/CLI/CLISourcesTemplate.cs @@ -24,6 +24,10 @@ namespace Cxxi.Generators.CLI Options.WrapperSuffix); GenerateForwardReferenceHeaders(); + + if (Options.OutputInteropIncludes) + WriteLine("#include "); + NewLine(); WriteLine("using namespace System;");