Skip to content

Commit 944b0ce

Browse files
committed
Redefine WIN constant to WINX86
1 parent 6f38810 commit 944b0ce

File tree

6 files changed

+9
-9
lines changed

6 files changed

+9
-9
lines changed

BinaryObjectScanner/BinaryObjectScanner.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828

2929
<!-- Set a build flag for Windows specifically -->
3030
<PropertyGroup Condition="'$(RuntimeIdentifier)'=='win-x86'">
31-
<DefineConstants>$(DefineConstants);WIN</DefineConstants>
31+
<DefineConstants>$(DefineConstants);WINX86</DefineConstants>
3232
</PropertyGroup>
3333

3434
<!-- Exclude certain parts of external modules for by default -->

BinaryObjectScanner/FileType/MPQ.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
using System.IO;
22
using BinaryObjectScanner.Interfaces;
3-
#if (NET452_OR_GREATER || NETCOREAPP) && WIN
3+
#if (NET452_OR_GREATER || NETCOREAPP) && WINX86
44
using StormLibSharp;
55
#endif
66

@@ -25,7 +25,7 @@ public bool Extract(string file, string outDir, bool includeDebug)
2525
/// <inheritdoc/>
2626
public bool Extract(Stream? stream, string file, string outDir, bool includeDebug)
2727
{
28-
#if NET20 || NET35 || !WIN
28+
#if NET20 || NET35 || !WINX86
2929
// Not supported for old .NET due to feature requirements
3030
// Not supported in non-Windows builds due to DLL requirements
3131
return false;

BinaryObjectScanner/FileType/MicrosoftCAB.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
using System;
22
using System.IO;
33
using BinaryObjectScanner.Interfaces;
4-
#if (NET40_OR_GREATER || NETCOREAPP) && WIN
4+
#if (NET40_OR_GREATER || NETCOREAPP) && WINX86
55
using LibMSPackN;
66
#else
77
using SabreTools.Models.MicrosoftCabinet;
@@ -29,7 +29,7 @@ public bool Extract(string file, string outDir, bool includeDebug)
2929
/// <inheritdoc/>
3030
public bool Extract(Stream? stream, string file, string outDir, bool includeDebug)
3131
{
32-
#if NET20 || NET35 || !WIN
32+
#if NET20 || NET35 || !WINX86
3333
try
3434
{
3535
// Create the wrapper

ExtractionTool/ExtractionTool.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828

2929
<!-- Set a build flag for Windows specifically -->
3030
<PropertyGroup Condition="'$(RuntimeIdentifier)'=='win-x86'">
31-
<DefineConstants>$(DefineConstants);WIN</DefineConstants>
31+
<DefineConstants>$(DefineConstants);WINX86</DefineConstants>
3232
</PropertyGroup>
3333

3434
<ItemGroup>

ExtractionTool/Program.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@ private static void ExtractFile(string file, string outputDirectory, bool includ
300300
{
301301
// Build the cabinet information
302302
Console.WriteLine("Extracting MS-CAB contents");
303-
#if NET20 || NET35 || !WIN
303+
#if NET20 || NET35 || !WINX86
304304
Console.WriteLine("WARNING: LZX compression not supported so some files may be skipped!");
305305
#endif
306306
Console.WriteLine();
@@ -317,7 +317,7 @@ private static void ExtractFile(string file, string outputDirectory, bool includ
317317
Console.WriteLine("Extracting MoPaQ contents");
318318
Console.WriteLine();
319319

320-
#if NET20 || NET35 || !WIN
320+
#if NET20 || NET35 || !WINX86
321321
Console.WriteLine("Extraction is not supported for this framework!");
322322
Console.WriteLine();
323323
#else

ProtectionScan/ProtectionScan.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828

2929
<!-- Set a build flag for Windows specifically -->
3030
<PropertyGroup Condition="'$(RuntimeIdentifier)'=='win-x86'">
31-
<DefineConstants>$(DefineConstants);WIN</DefineConstants>
31+
<DefineConstants>$(DefineConstants);WINX86</DefineConstants>
3232
</PropertyGroup>
3333

3434
<ItemGroup>

0 commit comments

Comments
 (0)