Skip to content

Commit

Permalink
fix: comment out webgl compile error - #61
Browse files Browse the repository at this point in the history
  • Loading branch information
netpyoung committed Jan 2, 2024
1 parent fca58d8 commit 4cbefda
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions unity_project/Assets/unity.webp/Runtime/NativeLibwebp.cs
Original file line number Diff line number Diff line change
Expand Up @@ -406,15 +406,15 @@ public static int CheckSizeOverflow([NativeTypeName("uint64_t")] ulong size)
[DllImport(DLL_NAME, CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
public static extern int WebPGetColorPalette([NativeTypeName("const struct WebPPicture *const")] WebPPicture* pic, [NativeTypeName("uint32_t *")] uint* palette);

[DllImport(DLL_NAME, CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
[return: NativeTypeName("long")]
public static extern IntPtr __builtin_expect([NativeTypeName("long")] IntPtr param0, [NativeTypeName("long")] IntPtr param1);
// [DllImport(DLL_NAME, CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
// [return: NativeTypeName("long")]
// public static extern IntPtr __builtin_expect([NativeTypeName("long")] IntPtr param0, [NativeTypeName("long")] IntPtr param1);

[DllImport(DLL_NAME, CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
public static extern int __builtin_clz([NativeTypeName("unsigned int")] uint param0);
// [DllImport(DLL_NAME, CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
// public static extern int __builtin_clz([NativeTypeName("unsigned int")] uint param0);

[DllImport(DLL_NAME, CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
public static extern int __builtin_ctz([NativeTypeName("unsigned int")] uint param0);
// [DllImport(DLL_NAME, CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
// public static extern int __builtin_ctz([NativeTypeName("unsigned int")] uint param0);

[NativeTypeName("#define WEBP_MAX_ALLOCABLE_MEMORY (1ULL << 34)")]
public const ulong WEBP_MAX_ALLOCABLE_MEMORY = (1UL << 34);
Expand Down

0 comments on commit 4cbefda

Please sign in to comment.