diff options
author | Egor Bogatov <egorbo@gmail.com> | 2018-06-14 23:42:13 +0300 |
---|---|---|
committer | Alexander Köplinger <alex.koeplinger@outlook.com> | 2018-06-14 23:42:13 +0300 |
commit | 8867cf2ee1599d1b1cdb35822736e6fb293ef06c (patch) | |
tree | 593f345f593386d3c5d01f07bcfb391ae264f510 | |
parent | 262298a61a9c0df69cfd8cb64c5ff336f544f83b (diff) |
use icall for DoubleToString on mono (#16)
-rw-r--r-- | src/Common/src/Interop/Unix/System.Private.CoreLib.Native/Interop.Number.cs | 4 |
1 files changed, 4 insertions, 0 deletions
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); } } |