Skip to content

Commit

Permalink
Merge pull request #446 from WeihanLi/update-compile-condition
Browse files Browse the repository at this point in the history
update compile condition
  • Loading branch information
rabbitism authored Oct 27, 2024
2 parents 3f2402c + fe34105 commit 8e98ae6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Ursa/Controls/EnumSelector/EnumSelector.cs
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ private void OnTypeChanged(AvaloniaPropertyChangedEventArgs<Type?> args)
}

// netstandard 2.0 does not support Enum.GetValuesAsUnderlyingType, which is used for native aot compilation
#if NET8_0_OR_GREATER
#if NET
private List<EnumItemTuple> GenerateItemTuple()
{
if (EnumType is null) return new List<EnumItemTuple>();
Expand Down
2 changes: 1 addition & 1 deletion src/Ursa/Controls/NumericUpDown/NumericUpDownBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,7 @@ protected static string TrimString(string? text, NumberStyles numberStyles)
text = text.Substring(1);
}
}
#if NET8_0_OR_GREATER
#if NET
else if ((numberStyles & NumberStyles.AllowBinarySpecifier) != 0)
{
if (text.StartsWith("0b") || text.StartsWith("0B")) // support 0b bin while user input
Expand Down

0 comments on commit 8e98ae6

Please sign in to comment.