diff --git a/src/Generator.Tests/HeaderTestFixture.cs b/src/Generator.Tests/HeaderTestFixture.cs index 37c6f3a4..512aa3d8 100644 --- a/src/Generator.Tests/HeaderTestFixture.cs +++ b/src/Generator.Tests/HeaderTestFixture.cs @@ -16,7 +16,13 @@ namespace CppSharp.Generator.Tests Options = new DriverOptions(); var testsPath = LibraryTest.GetTestsDirectory("Native"); + +#if OLD_PARSER Options.IncludeDirs.Add(testsPath); +#else + Options.addIncludeDirs(testsPath); +#endif + Options.Headers.Add(file); Driver = new Driver(Options, new TextDiagnosticPrinter());