Config: check for 'long long' support
[sol.git] / sol / config / compiler.hpp
blob7036ca444e349fc5b565896bea13fa3532ea09c3
1 #if !defined(sol_config_compiler_hpp_included)
2 #define sol_config_compiler_hpp_included
3 /// \addtogroup sol_config
4 /// \{
7 /**
8 * \file sol/config/compiler.hpp
9 * \brief Compiler-specific configuration
10 * \author Sven Suursoho
15 // detect
18 #if defined(SOL_COMPILER_CONFIG)
19 // already have user specified compiler config header
21 #elif defined(__GNUC__)
22 // gcc
23 #define SOL_COMPILER_CONFIG "sol/config/compiler/gcc.hpp"
25 #else
26 #error "Unknown compiler"
27 #endif
31 // include
34 #if defined(SOL_COMPILER_CONFIG)
35 #include SOL_COMPILER_CONFIG
36 #endif
40 // check for required stuff
43 #if !defined(SOL_COMPILER_NAME)
44 #error "SOL_COMPILER_NAME not specified"
45 #endif
47 #if !defined(SOL_COMPILER_VERSION)
48 #error "SOL_COMPILER_VERSION not specified"
49 #endif
52 /// \}
53 #endif // sol_config_compiler_hpp_included