Removed the stubs for System.Diagnostics.Debug from Android & IOS
authorTzach Shabtay <tzachshabtay@gmail.com>
Sun, 11 Dec 2016 23:03:29 +0000 (18:03 -0500)
committerTzach Shabtay <tzachshabtay@gmail.com>
Sun, 11 Dec 2016 23:03:29 +0000 (18:03 -0500)
This looks like it was once a Xamarin limitation, but it’s not anymore.
Note: tested this on Android, but not on IOS (tested compilation on IOS
only).
Fixes #447

src/OpenTK/Minimal.cs

index 11b62b7..56ddd44 100644 (file)
@@ -13,6 +13,8 @@ namespace OpenTK
     // minimal targets (e.g. MonoTouch).
     // Note: the "overriden" classes must not be fully qualified for this to work!
 
+    #if MINIMAL
+
     // System.Diagnostics.Debug
     static class Debug
     {
@@ -39,8 +41,6 @@ namespace OpenTK
         public static void Flush() { }
     }
 
-    #if MINIMAL
-
     // System.Diagnostics.Stopwatch
     sealed class Stopwatch
     {