Add support to build with Mono
[mono.git] / mcs / class / referencesource / System.Numerics / System / Numerics / BigNumber.cs
index c794f96f4a52817a41272a5473dab26e9207aa7c..36542ed237ab6bc66b3383c871c371bcd33ca5b4 100644 (file)
@@ -517,12 +517,12 @@ namespace System.Numerics {
 
             bool decimalFmt = (fmt == 'g' || fmt == 'G' || fmt == 'd' || fmt == 'D' || fmt == 'r' || fmt == 'R');           
 
-#if SILVERLIGHT ||FEATURE_NETCORE
+#if SILVERLIGHT ||FEATURE_NETCORE || MONO
             if (!decimalFmt) {
                 // Silverlight supports invariant formats only
                 throw new FormatException(SR.GetString(SR.Format_InvalidFormatSpecifier));
             }
-#endif //SILVERLIGHT ||FEATURE_NETCORE
+#endif //SILVERLIGHT ||FEATURE_NETCORE || MONO
 
             if (value._bits == null) {
                 if (fmt == 'g' || fmt == 'G' || fmt == 'r' || fmt == 'R') {