Skip to content

Commit af1dcb0

Browse files
committed
Fix covariant cause build error in old compiler including Unity. issue #77.
1 parent a2aa5b7 commit af1dcb0

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

src/MsgPack/Serialization/INilImplicationHandlerOnUnpackedParameter.cs

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
//
33
// MessagePack for CLI
44
//
5-
// Copyright (C) 2014 FUJIWARA, Yusuke
5+
// Copyright (C) 2014-2015 FUJIWARA, Yusuke
66
//
77
// Licensed under the Apache License, Version 2.0 (the "License");
88
// you may not use this file except in compliance with the License.
@@ -18,14 +18,22 @@
1818
//
1919
#endregion -- License Terms --
2020

21+
#if UNITY_STANDALONE || UNITY_WEBPLAYER || UNITY_WII || UNITY_IPHONE || UNITY_ANDROID || UNITY_PS3 || UNITY_XBOX360 || UNITY_FLASH || UNITY_BKACKBERRY || UNITY_WINRT
22+
#define UNITY
23+
#endif
24+
2125
using System;
2226

2327
namespace MsgPack.Serialization
2428
{
2529
/// <summary>
2630
/// Defines common interface for parameter of <see cref="NilImplicationHandler{TCondition,TPackingParameter,TAction,TUnpackedParameter}.OnUnpacked"/> method and its template methods.
2731
/// </summary>
32+
#if NETFX_35 || UNITY
33+
internal interface INilImplicationHandlerOnUnpackedParameter<TAction> : INilImplicationHandlerParameter
34+
#else
2835
internal interface INilImplicationHandlerOnUnpackedParameter<out TAction> : INilImplicationHandlerParameter
36+
#endif
2937
{
3038
TAction Store { get; }
3139
}

0 commit comments

Comments
 (0)