Skip to content

Commit b2cc6b2

Browse files
committed
fix: Fixed ReadOnlySpan not being found in Unity 2020.3 and lower
1 parent f5d9782 commit b2cc6b2

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Runtime/Extensions/SpanExtensions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#if ENABLE_UNSAFE
1+
#if UNITY_2021_1_OR_NEWER || SYSTEM_MEMORY
22
namespace SolidUtilities
33
{
44
using System;

Runtime/SolidUtilities.asmdef

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@
1111
"defineConstraints": [],
1212
"versionDefines": [
1313
{
14-
"name": "org.nuget.system.runtime.compilerservices.unsafe",
14+
"name": "org.nuget.system.memory",
1515
"expression": "",
16-
"define": "ENABLE_UNSAFE"
16+
"define": "SYSTEM_MEMORY"
1717
}
1818
],
1919
"noEngineReferences": false

0 commit comments

Comments
 (0)