Skip to content

Commit

Permalink
[mono] Ensure MonoAssemblyName is in sync between managed and native (d…
Browse files Browse the repository at this point in the history
…otnet#43536)

We also no longer appear to need the NETCORE or DISABLE_REMOTING defines in msbuild, so remove them
  • Loading branch information
CoffeeFlux authored Oct 17, 2020
1 parent 8a89f97 commit ef559dd
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/mono/mono/metadata/metadata-internals.h
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ struct _MonoAssemblyName {
uint32_t hash_len;
uint32_t flags;
#ifdef ENABLE_NETCORE
int major, minor, build, revision, arch;
int32_t major, minor, build, revision, arch;
#else
uint16_t major, minor, build, revision, arch;
#endif
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@
<PropertyGroup>
<NoWarn>$(NoWarn),618,67</NoWarn>

<DefineConstants>NETCORE;DISABLE_REMOTING;MONO_FEATURE_SRE;$(DefineConstants)</DefineConstants>
<DefineConstants>MONO_FEATURE_SRE;$(DefineConstants)</DefineConstants>

<FeatureManagedEtwChannels>true</FeatureManagedEtwChannels>
<FeatureManagedEtw>true</FeatureManagedEtw>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,12 +72,7 @@ internal unsafe struct MonoAssemblyName
internal uint hash_alg;
internal uint hash_len;
internal uint flags;
#if NETCORE
internal int major, minor, build, revision;
#else
internal ushort major, minor, build, revision;
#endif
internal ushort arch;
internal int major, minor, build, revision, arch;
}

// Used to implement generic sharing
Expand Down

0 comments on commit ef559dd

Please sign in to comment.