medfall

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

commit d86a86f97fc17bdd0baf5ad42987991138c555fb
parent f512e0ce055f6628c99558476551e6eafaffaa4a
Author: Michael Savage <mikejsavage@gmail.com>
Date:   Wed Sep 14 21:06:28 +0100

Add platform.h

Diffstat:
platform.h | 31+++++++++++++++++++++++++++++++
1 file changed, 31 insertions(+), 0 deletions(-)
diff --git a/platform.h b/platform.h @@ -0,0 +1,31 @@ +#ifndef _PLATFORM_H_ +#define _PLATFORM_H_ + +#if defined( _WIN32 ) +# define PLATFORM_WINDOWS 1 +#elif defined( __linux__ ) +# define PLATFORM_LINUX 1 +# define PLATFORM_UNIX 1 +#elif defined( __APPLE__ ) +# define PLATFORM_OSX 1 +# define PLATFORM_UNIX 1 +#elif defined( __OpenBSD__ ) +# define PLATFORM_OPENBSD 1 +# define PLATFORM_UNIX 1 +#else +# error new platform +#endif + +#if defined( _MSC_VER ) +# define COMPILER_MSVC 1 +#elif defined( __clang__ ) +# define COMPILER_CLANG 1 +# define COMPILER_GCCORCLANG 1 +#elif defined( __GNUC__ ) +# define COMPILER_GCC 1 +# define COMPILER_GCCORCLANG 1 +#else +# error new compiler +#endif + +#endif // _PLATFORM_H_