From 2afe49107c89c7cfd679beb83b8355ef4cf1777f Mon Sep 17 00:00:00 2001 From: Shinsuke Sugita Date: Wed, 30 Aug 2017 11:45:42 +0900 Subject: [PATCH] m_IsRunningOnAOT doesn't be used preprocessor macros --- src/MoonSharp.Interpreter/Platforms/PlatformAutoDetector.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/MoonSharp.Interpreter/Platforms/PlatformAutoDetector.cs b/src/MoonSharp.Interpreter/Platforms/PlatformAutoDetector.cs index b1765517..74aca3d6 100755 --- a/src/MoonSharp.Interpreter/Platforms/PlatformAutoDetector.cs +++ b/src/MoonSharp.Interpreter/Platforms/PlatformAutoDetector.cs @@ -10,8 +10,10 @@ namespace MoonSharp.Interpreter.Platforms /// public static class PlatformAutoDetector { +#if UNITY_WEBGL || UNITY_IOS || UNITY_TVOS || ENABLE_IL2CPP +#else private static bool? m_IsRunningOnAOT = null; - +#endif private static bool m_AutoDetectionsDone = false; ///