diff options
Diffstat (limited to 'src/platform/platform.c')
-rw-r--r-- | src/platform/platform.c | 68 |
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; +} |