Add macro B_IF_GCC_2
It resolves to an "if" or "else" parameter depending on the gcc version.
This commit is contained in:
@@ -1,12 +1,19 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright 2008, Oliver Tappe, [email protected].
|
* Copyright 2008, Oliver Tappe, [email protected].
|
||||||
* Copyright 2008, Ingo Weinhold, [email protected].
|
* Copyright 2008-2012, Ingo Weinhold, [email protected].
|
||||||
* Distributed under the terms of the MIT License.
|
* Distributed under the terms of the MIT License.
|
||||||
*/
|
*/
|
||||||
#ifndef _BINARY_COMPATIBILITY_GLOBAL_H_
|
#ifndef _BINARY_COMPATIBILITY_GLOBAL_H_
|
||||||
#define _BINARY_COMPATIBILITY_GLOBAL_H_
|
#define _BINARY_COMPATIBILITY_GLOBAL_H_
|
||||||
|
|
||||||
|
|
||||||
|
#if __GNUC__ == 2
|
||||||
|
# define B_IF_GCC_2(ifBlock, elseBlock) ifBlock
|
||||||
|
#else
|
||||||
|
# define B_IF_GCC_2(ifBlock, elseBlock) elseBlock
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
// method codes
|
// method codes
|
||||||
enum {
|
enum {
|
||||||
// app kit
|
// app kit
|
||||||
|
|||||||
Reference in New Issue
Block a user