Add macro B_IF_GCC_2

It resolves to an "if" or "else" parameter depending on the gcc version.
This commit is contained in:
Ingo Weinhold
2012-02-19 15:11:57 +01:00
parent 48d21c1299
commit 547ad24cea
@@ -1,12 +1,19 @@
/*
* 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.
*/
#ifndef _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
enum {
// app kit