Skip to content

Commit

Permalink
Merge pull request #9 from badcel/simplify-compile-time-constants
Browse files Browse the repository at this point in the history
Simplify compile time constants
  • Loading branch information
badcel authored Jun 15, 2024
2 parents 1a48ebc + 8cb9ac0 commit e0deaef
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions src/WCharT.Net/WCharT.Net.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,7 @@
<RootNamespace>WCharT</RootNamespace>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>

<BUILD_FOR Condition="'$(RuntimeIdentifier)' != ''">$(RuntimeIdentifier.ToUpper())</BUILD_FOR>
<BUILD_FOR Condition="'$(RuntimeIdentifier)' == ''">UNIX</BUILD_FOR>
<DefineConstants>$(DefineConstants);BUILD_FOR_$(BUILD_FOR)</DefineConstants>
<DefineConstants Condition="'$(RuntimeIdentifier)' == 'win'">$(DefineConstants);TARGET_WINDOWS</DefineConstants>

<ProduceReferenceAssembly>true</ProduceReferenceAssembly>
<IncludeBuildOutput>false</IncludeBuildOutput>
Expand Down
2 changes: 1 addition & 1 deletion src/WCharT.Net/WCharT.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#if BUILD_FOR_WIN
#if TARGET_WINDOWS
using Platform = WCharT.Platforms.Windows;
#else
using Platform = WCharT.Platforms.Unix;
Expand Down

0 comments on commit e0deaef

Please sign in to comment.