From dea1cc6da3533a5edca9a58d25089b9940d1bf4c Mon Sep 17 00:00:00 2001 From: Jb Evain Date: Sun, 17 Jan 2016 16:28:54 -0800 Subject: Fix compilation under READ_ONLY; fixes #240 --- Mono.Cecil/Import.cs | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/Mono.Cecil/Import.cs b/Mono.Cecil/Import.cs index 362e490..f048f8a 100644 --- a/Mono.Cecil/Import.cs +++ b/Mono.Cecil/Import.cs @@ -8,8 +8,6 @@ // Licensed under the MIT/X11 license. // -#if !READ_ONLY - using System; using System.Collections.Generic; using Mono.Collections.Generic; @@ -724,6 +722,8 @@ namespace Mono.Cecil { } } +#endif + static partial class Mixin { public static void CheckModule (ModuleDefinition module) @@ -787,8 +787,4 @@ namespace Mono.Cecil { return true; } } - -#endif } - -#endif -- cgit v1.2.3