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; ///