From 299b544893929046facd01c6096dcee9bfd43ba8 Mon Sep 17 00:00:00 2001 From: triton Date: Mon, 13 Jan 2014 16:50:07 +0000 Subject: [PATCH] Fixed C++ headers test fixture to work with new parser. --- src/Generator.Tests/HeaderTestFixture.cs | 6 ++++++ 1 file changed, 6 insertions(+) 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());