Skip to content

Commit

Permalink
bump Smdn.MSBuild.DefineConstants.NETSdkApi-1.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
smdn committed Mar 26, 2022
1 parent 61d69c2 commit a444f1f
Show file tree
Hide file tree
Showing 6 changed files with 2 additions and 29 deletions.
2 changes: 1 addition & 1 deletion src/Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ SPDX-License-Identifier: MIT
<ItemGroup>
<PackageReference
Include="Smdn.MSBuild.DefineConstants.NETSdkApi"
Version="[1.1.1]"
Version="[1.2.0]"
PrivateAssets="all"
IncludeAssets="build"
/>
Expand Down
7 changes: 0 additions & 7 deletions src/Smdn.Fundamental.UInt24n/Smdn/UInt24n.cs
Original file line number Diff line number Diff line change
@@ -1,12 +1,5 @@
// SPDX-FileCopyrightText: 2022 smdn <smdn@smdn.jp>
// SPDX-License-Identifier: MIT
#if NET6_0_OR_GREATER
#define SYSTEM_MATH_DIVREM_RETURN_VALUETUPLE_2
#endif
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP2_0_OR_GREATER || NET5_0_OR_GREATER
#define SYSTEM_MATH_CLAMP
#endif

#nullable enable

using System;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,5 @@
// SPDX-FileCopyrightText: 2022 smdn <smdn@smdn.jp>
// SPDX-License-Identifier: MIT
#if NETCOREAPP3_0_OR_GREATER || NET5_0_OR_GREATER
#define SYSTEM_NUMERICS_BITOPERATIONS_LEADINGZEROCOUNT
#define SYSTEM_NUMERICS_BITOPERATIONS_POPCOUNT
#define SYSTEM_NUMERICS_BITOPERATIONS_TRAILINGZEROCOUNT
#endif

using System;
#if SYSTEM_NUMERICS_BITOPERATIONS_LEADINGZEROCOUNT || SYSTEM_NUMERICS_BITOPERATIONS_POPCOUNT || SYSTEM_NUMERICS_BITOPERATIONS_TRAILINGZEROCOUNT
using System.Numerics;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,5 @@
// SPDX-FileCopyrightText: 2022 smdn <smdn@smdn.jp>
// SPDX-License-Identifier: MIT
#if NET6_0_OR_GREATER
#define SYSTEM_NUMERICS_BITOPERATIONS_ISPOW2
#endif
#if NETCOREAPP3_0_OR_GREATER || NET5_0_OR_GREATER
#define SYSTEM_NUMERICS_BITOPERATIONS_LOG2
#endif

using System;
#if SYSTEM_NUMERICS_BITOPERATIONS_ISPOW2 || SYSTEM_NUMERICS_BITOPERATIONS_LOG2
using System.Numerics;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,5 @@
// SPDX-FileCopyrightText: 2022 smdn <smdn@smdn.jp>
// SPDX-License-Identifier: MIT
#if NET6_0_OR_GREATER
#define SYSTEM_MATH_DIVREM_RETURN_VALUETUPLE_2
#endif
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP2_0_OR_GREATER || NET5_0_OR_GREATER
#define SYSTEM_MATH_CLAMP
#endif

using System;

#if SYSTEM_MATH_CLAMP
Expand Down
2 changes: 1 addition & 1 deletion tests/Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ SPDX-License-Identifier: MIT
<ItemGroup>
<PackageReference
Include="Smdn.MSBuild.DefineConstants.NETSdkApi"
Version="[1.1.1]"
Version="[1.2.0]"
PrivateAssets="all"
IncludeAssets="build"
/>
Expand Down

0 comments on commit a444f1f

Please sign in to comment.