From 8867cf2ee1599d1b1cdb35822736e6fb293ef06c Mon Sep 17 00:00:00 2001 From: Egor Bogatov Date: Thu, 14 Jun 2018 23:42:13 +0300 Subject: use icall for DoubleToString on mono (#16) --- .../src/Interop/Unix/System.Private.CoreLib.Native/Interop.Number.cs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src') diff --git a/src/Common/src/Interop/Unix/System.Private.CoreLib.Native/Interop.Number.cs b/src/Common/src/Interop/Unix/System.Private.CoreLib.Native/Interop.Number.cs index 4fba126b2..e9066eb64 100644 --- a/src/Common/src/Interop/Unix/System.Private.CoreLib.Native/Interop.Number.cs +++ b/src/Common/src/Interop/Unix/System.Private.CoreLib.Native/Interop.Number.cs @@ -10,7 +10,11 @@ internal static partial class Interop { internal unsafe partial class Sys { +#if !MONO [DllImport(Interop.Libraries.CoreLibNative, EntryPoint = "CoreLibNative_DoubleToString")] +#else + [MethodImplAttribute(MethodImplOptions.InternalCall)] +#endif internal static extern unsafe int DoubleToString(double value, byte* format, byte* buffer, int bufferLength); } } -- cgit v1.2.3