From aff6b2033ac0abfb0a0c89ca56e90353f37141ac Mon Sep 17 00:00:00 2001 From: Dimitar Dobrev Date: Mon, 20 Jan 2014 21:51:52 +0200 Subject: [PATCH] Changed the option for bitness to be writable and 64-bit by default for 64-bit builds. Signed-off-by: Dimitar Dobrev --- src/Generator/Options.cs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/Generator/Options.cs b/src/Generator/Options.cs index aa09a1ec..21b4b582 100644 --- a/src/Generator/Options.cs +++ b/src/Generator/Options.cs @@ -44,6 +44,11 @@ namespace CppSharp Encoding = Encoding.ASCII; CodeFiles = new List(); + + Is32Bit = true; +#if IS_64_BIT + Is32Bit = false; +#endif } // General options @@ -128,7 +133,7 @@ namespace CppSharp get { return GeneratorKind == GeneratorKind.CLI; } } - public bool Is32Bit { get { return true; } } + public bool Is32Bit { get; set; } public List CodeFiles { get; private set; } public readonly List DependentNameSpaces = new List();