Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/windirstat/premake-4.x-stable.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/platform/platform.c')
-rw-r--r--src/platform/platform.c68
1 files changed, 34 insertions, 34 deletions
diff --git a/src/platform/platform.c b/src/platform/platform.c
index cf20a3a..a98987c 100644
--- a/src/platform/platform.c
+++ b/src/platform/platform.c
@@ -1,34 +1,34 @@
-/**
- * \file platform.c
- * \brief Platform abstraction API.
- * \author Copyright (c) 2002-2008 Jason Perkins and the Premake project
- */
-
-#include "premake.h"
-#include "platform.h"
-
-static enum Platform CurrentPlatform = Unknown;
-
-
-enum Platform platform_get()
-{
- if (CurrentPlatform == Unknown)
- {
-#if defined(PLATFORM_BSD)
- CurrentPlatform = BSD;
-#elif defined(PLATFORM_LINUX)
- CurrentPlatform = Linux;
-#elif defined(PLATFORM_MACOSX)
- CurrentPlatform = MacOSX;
-#else
- CurrentPlatform = Windows;
-#endif
- }
- return CurrentPlatform;
-}
-
-
-void platform_set(enum Platform id)
-{
- CurrentPlatform = id;
-}
+/**
+ * \file platform.c
+ * \brief Platform abstraction API.
+ * \author Copyright (c) 2002-2008 Jason Perkins and the Premake project
+ */
+
+#include "premake.h"
+#include "platform.h"
+
+static enum Platform CurrentPlatform = Unknown;
+
+
+enum Platform platform_get()
+{
+ if (CurrentPlatform == Unknown)
+ {
+#if defined(PLATFORM_BSD)
+ CurrentPlatform = BSD;
+#elif defined(PLATFORM_LINUX)
+ CurrentPlatform = Linux;
+#elif defined(PLATFORM_MACOSX)
+ CurrentPlatform = MacOSX;
+#else
+ CurrentPlatform = Windows;
+#endif
+ }
+ return CurrentPlatform;
+}
+
+
+void platform_set(enum Platform id)
+{
+ CurrentPlatform = id;
+}