mudgangster

Tiny, scriptable MUD client
Log | Files | Refs | README

platform.h (659B)


      1 #pragma once
      2 
      3 #if defined( _WIN32 )
      4 #  define PLATFORM_WINDOWS 1
      5 #elif defined( __linux__ )
      6 #  define PLATFORM_LINUX 1
      7 #  define PLATFORM_UNIX 1
      8 #elif defined( __APPLE__ )
      9 #  define PLATFORM_OSX 1
     10 #  define PLATFORM_UNIX 1
     11 #elif defined( __OpenBSD__ )
     12 #  define PLATFORM_OPENBSD 1
     13 #  define PLATFORM_UNIX 1
     14 #else
     15 #  error new platform
     16 #endif
     17 
     18 #if defined( _MSC_VER )
     19 #  define COMPILER_MSVC 1
     20 #  if _MSC_VER == 1800
     21 #    define MSVC_VERSION 2013
     22 #  endif
     23 #elif defined( __clang__ )
     24 #  define COMPILER_CLANG 1
     25 #  define COMPILER_GCCORCLANG 1
     26 #elif defined( __GNUC__ )
     27 #  define COMPILER_GCC 1
     28 #  define COMPILER_GCCORCLANG 1
     29 #else
     30 #  error new compiler
     31 #endif