2009-04-29 Sebastien Pouliot <sebastien@ximian.com>
authorSebastien Pouliot <sebastien@ximian.com>
Wed, 29 Apr 2009 14:05:33 +0000 (14:05 -0000)
committerSebastien Pouliot <sebastien@ximian.com>
Wed, 29 Apr 2009 14:05:33 +0000 (14:05 -0000)
* hashwrap.cs: Add "#if !NET_2_1 ... #endif" on wrappers so they
don't get compiled for 2.1 (since mscorlib 2.1 lacks some
required types and the generated code is not part of SL2).

svn path=/trunk/mcs/; revision=133011

mcs/class/System.Core/tools/ChangeLog
mcs/class/System.Core/tools/hashwrap.cs

index 4cc99eb6eee8277854fae82c37c1d2984361d166..8bc51c63293e3a77c146a47e0697b8e34fed66c3 100644 (file)
@@ -1,3 +1,9 @@
+2009-04-29  Sebastien Pouliot  <sebastien@ximian.com>
+
+       * hashwrap.cs: Add "#if !NET_2_1 ... #endif" on wrappers so they
+       don't get compiled for 2.1 (since mscorlib 2.1 lacks some 
+       required types and the generated code is not part of SL2).
+
 2008-08-05  Sebastien Pouliot  <sebastien@ximian.com>
 
        * hashwrap.cs: Build wrappers around managed hash implementations 
index e96ba923772252794bcc9a63284adea169825281..cc22c959c4e55300d9ec3a7be30b42c424b30947 100644 (file)
@@ -62,6 +62,8 @@ class Program {
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //
 
+#if !NET_2_1
+
 namespace System.Security.Cryptography {
 
        // this is a wrapper around <wrapAround>
@@ -109,6 +111,8 @@ namespace System.Security.Cryptography {
                }
        }
 }
+
+#endif
 ";
 
        static int Main (string [] args)