Permalink
Browse files

make Program.cs files linux compatible

  • Loading branch information...
1 parent 0f15925 commit e1d43fc28c26b831f5f07c7ab760efac2a18296d @urkle urkle committed May 18, 2012
@@ -1,12 +1,14 @@
using System;
+#if MONOMAC
using MonoMac.Foundation;
using MonoMac.AppKit;
using MonoMac.ObjCRuntime;
+#endif
namespace Asteroid_Belt_Assault
{
-#if WINDOWS || XBOX
+#if WINDOWS || XBOX || LINUX
static class Program
{
/// <summary>
@@ -20,7 +22,7 @@ static void Main(string[] args)
}
}
}
-#else
+#elif MONOMAC
static class Program
{
/// <summary>
@@ -51,6 +53,8 @@ public override bool ApplicationShouldTerminateAfterLastWindowClosed (NSApplicat
return true;
}
}
+#else
+#error Unknown platform
#endif
}
@@ -1,12 +1,14 @@
using System;
+#if MONOMAC
using MonoMac.Foundation;
using MonoMac.AppKit;
using MonoMac.ObjCRuntime;
+#endif
namespace Flood_Control
{
-#if WINDOWS || XBOX
+#if WINDOWS || XBOX || LINUX
static class Program
{
/// <summary>
@@ -20,7 +22,7 @@ static void Main(string[] args)
}
}
}
-#else
+#elif MONOMAC
static class Program
{
/// <summary>
@@ -51,6 +53,8 @@ public override bool ApplicationShouldTerminateAfterLastWindowClosed (NSApplicat
return true;
}
}
+#else
+#error Unknown platform
#endif
}
@@ -1,12 +1,14 @@
using System;
+#if MONOMAC
using MonoMac.Foundation;
using MonoMac.AppKit;
using MonoMac.ObjCRuntime;
+#endif
namespace Gemstone_Hunter
{
-#if WINDOWS || XBOX
+#if WINDOWS || XBOX || LINUX
static class Program
{
/// <summary>
@@ -20,7 +22,7 @@ static void Main(string[] args)
}
}
}
-#else
+#elif MONOMAC
static class Program
{
/// <summary>
@@ -50,7 +52,9 @@ public override bool ApplicationShouldTerminateAfterLastWindowClosed (NSApplicat
{
return true;
}
- }
+ }
+#else
+#error Unknown platform
#endif
}
@@ -1,12 +1,14 @@
using System;
+#if MONOMAC
using MonoMac.Foundation;
using MonoMac.AppKit;
using MonoMac.ObjCRuntime;
+#endif
namespace Robot_Rampage
{
-#if WINDOWS || XBOX
+#if WINDOWS || XBOX || LINUX
static class Program
{
/// <summary>
@@ -20,7 +22,7 @@ static void Main(string[] args)
}
}
}
-#else
+#elif MONOMAC
static class Program
{
/// <summary>
@@ -52,6 +54,8 @@ public override bool ApplicationShouldTerminateAfterLastWindowClosed (NSApplicat
return true;
}
}
+#else
+#error Unknown platform
#endif
}

0 comments on commit e1d43fc

Please sign in to comment.