Skip to content

Commit

Permalink
Fix preprocessor condition to enable open generics
Browse files Browse the repository at this point in the history
  • Loading branch information
hadashiA committed Mar 29, 2024
1 parent 6dd73f7 commit bea5e2c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public static IServiceCollection AddMessagePipe(this IServiceCollection services
services.TryAddTransient(item); // filter itself is Transient
}

#if !UNITY_2018_3_OR_NEWER || MESSAGEPIPE_OPENGENERICS_SUPPORT
#if !UNITY_2018_3_OR_NEWER || (MESSAGEPIPE_OPENGENERICS_SUPPORT && UNITY_2022_1_OR_NEWER)
// open generics implemntations(.NET Only)

{
Expand Down
2 changes: 1 addition & 1 deletion src/MessagePipe/ServiceCollectionExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public static IServiceCollection AddMessagePipe(this IServiceCollection services
services.TryAddTransient(item); // filter itself is Transient
}

#if !UNITY_2018_3_OR_NEWER || MESSAGEPIPE_OPENGENERICS_SUPPORT
#if !UNITY_2018_3_OR_NEWER || (MESSAGEPIPE_OPENGENERICS_SUPPORT && UNITY_2022_1_OR_NEWER)
// open generics implemntations(.NET Only)

{
Expand Down

0 comments on commit bea5e2c

Please sign in to comment.