Skip to content

Commit f749713

Browse files
committed
add: UNITY_WEBGL predefined for webgl build #10
1 parent b0ece32 commit f749713

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

unity_project/Assets/unity.webp/Runtime/NativeLibwebp.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ public static unsafe partial class NativeLibwebp
1616
const string DLL_NAME = "webp";
1717
#elif UNITY_IOS
1818
const string DLL_NAME = "__Internal";
19+
#elif UNITY_WEBGL
20+
const string DLL_NAME = "__Internal";
1921
#endif
2022
[DllImport(DLL_NAME, CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
2123
public static extern int WebPGetDecoderVersion();

unity_project/Assets/unity.webp/Runtime/NativeLibwebpdemux.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ public static unsafe partial class NativeLibwebpdemux
1616
const string DLL_NAME = "webpdemux";
1717
#elif UNITY_IOS
1818
const string DLL_NAME = "__Internal";
19+
#elif UNITY_WEBGL
20+
const string DLL_NAME = "__Internal";
1921
#endif
2022

2123
[DllImport(DLL_NAME, CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]

0 commit comments

Comments
 (0)