Commit ad60b051 authored by Martin Finkel's avatar Martin Finkel

Fix build

parent 54d360ca
......@@ -43,7 +43,7 @@ namespace LibVLCSharp.Shared
throw new VLCException("failed to initialize libvlc with JniOnLoad " +
$"{nameof(JniRuntime.CurrentRuntime.InvocationPointer)}: {JniRuntime.CurrentRuntime.InvocationPointer}");
}
#endif
#elif DESKTOP
//TODO: Add Unload library func using handles
static void InitializeDesktop()
{
......@@ -87,6 +87,7 @@ namespace LibVLCSharp.Shared
return Native.LoadLibrary(libraryPath);// TODO: cross-platform load
}
#endif
}
internal static class Constants
......
......@@ -411,7 +411,7 @@ namespace LibVLCSharp.Shared
bool CloseLogFile()
{
if (_logFileHandle == IntPtr.Zero) return true;
#if !IOS
#if DESKTOP
if(RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
return Native.fcloseWindows(_logFileHandle) == 0;
if (RuntimeInformation.IsOSPlatform(OSPlatform.Linux))
......@@ -479,7 +479,7 @@ namespace LibVLCSharp.Shared
IntPtr NativeFilePtr(string filename)
{
var filePtr = IntPtr.Zero;
#if !IOS
#if DESKTOP
if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
{
Native._wfopen_s(out filePtr, filename);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment