Skip to content

Commit 44fa49f

Browse files
committed
Format constant and ifdef out SupportedOSPlatform
1 parent 8791f6e commit 44fa49f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

test/Microsoft.NET.TestFramework/Utilities/MachOSignature.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,9 @@ namespace Microsoft.NET.TestFramework.Utilities
99
{
1010
public static class MachOSignature
1111
{
12+
#if NET
1213
[SupportedOSPlatform("osx")]
14+
#endif
1315
public static bool HasValidMachOSignature(FileInfo file, ITestOutputHelper log)
1416
{
1517
var codesignPath = @"/usr/bin/codesign";
@@ -27,7 +29,7 @@ public static bool HasMachOSignatureLoadCommand(FileInfo file)
2729
* - 4-byte command size
2830
* - variable length command-specific data
2931
*/
30-
const uint LC_CODE_SIGNATURE = 0x1D;
32+
const uint LC_CODE_SIGNATURE = 0x0000001D;
3133
using (var stream = file.OpenRead())
3234
{
3335
// Read the MachO magic number to determine endianness

0 commit comments

Comments
 (0)