mirror of
https://github.com/codership/wsrep-lib.git
synced 2025-07-31 18:24:25 +03:00
Cleaning wsrep-API dependencies from library code
Replace all wsrep_api.h dependencies with similar code in library implementation. Also add gcc/g++ 4.4 to travis automation to get better compiler coverage.
This commit is contained in:
@ -20,12 +20,19 @@
|
||||
|
||||
/** @file compiler.hpp
|
||||
*
|
||||
* Compiler specific options.
|
||||
* Compiler specific macro definitions.
|
||||
*
|
||||
* WSREP_OVERRIDE - Set to "override" if the compiler supports it, otherwise
|
||||
* left empty.
|
||||
* WSREP_CONSTEXPR_OR_INLINE - Set to "constexpr" if the compiler supports it,
|
||||
* otherwise "inline".
|
||||
*/
|
||||
|
||||
#define WSREP_UNUSED __attribute__((unused))
|
||||
#if __cplusplus >= 201103L
|
||||
#define WSREP_OVERRIDE override
|
||||
#define WSREP_CONSTEXPR_OR_INLINE constexpr
|
||||
#else
|
||||
#define WSREP_OVERRIDE
|
||||
#define WSREP_CONSTEXPR_OR_INLINE inline
|
||||
#endif // __cplusplus >= 201103L
|
||||
|
Reference in New Issue
Block a user