66#include < cstddef>
77
88#include < mono/metadata/image.h>
9- #if defined (NET6 )
9+ #if defined (NET )
1010#include < mono/metadata/mono-private-unstable.h>
1111#endif
1212#include < mono/metadata/object.h>
1717#include " search.hh"
1818#include " strings.hh"
1919
20- #if defined (RELEASE) && defined (ANDROID) && defined (NET6 ) && defined (ENABLE_MARSHAL_METHODS)
20+ #if defined (RELEASE) && defined (ANDROID) && defined (NET ) && defined (ENABLE_MARSHAL_METHODS)
2121#define USE_CACHE 1
2222#endif
2323
@@ -52,7 +52,7 @@ namespace xamarin::android::internal {
5252 }
5353#endif // def USE_CACHE
5454
55- #if defined (NET6 )
55+ #if defined (NET )
5656 force_inline static MonoImage* load (dynamic_local_string<SENSIBLE_PATH_MAX> const & name, MonoAssemblyLoadContextGCHandle alc_gchandle, hash_t name_hash, uint8_t *assembly_data, uint32_t assembly_data_size) noexcept
5757 {
5858 log_info (LOG_DEFAULT, " Loading assembly %s; hash 0x%zx" , name.get (), name_hash);
@@ -74,7 +74,7 @@ namespace xamarin::android::internal {
7474
7575 return load (name, alc_gchandle, xxhash::hash (name.get (), name.length ()), assembly_data, assembly_data_size);
7676 }
77- #endif
77+ #endif // def NET
7878
7979 force_inline static MonoImage* load (dynamic_local_string<SENSIBLE_PATH_MAX> const & name, bool ref_only, hash_t name_hash, uint8_t *assembly_data, uint32_t assembly_data_size) noexcept
8080 {
@@ -136,7 +136,7 @@ namespace xamarin::android::internal {
136136 // support for unloadable Assembly Load Contexts) and the actual write operation to the destination is
137137 // atomic
138138 assembly_image_cache[index] = image;
139- #endif // def RELEASE && def ANDROID && def NET6
139+ #endif // def RELEASE && def ANDROID && def NET
140140 return image;
141141 }
142142
0 commit comments