2007-10-16 00:13:55 +04:00
|
|
|
/*
|
2008-04-09 18:21:45 +04:00
|
|
|
* Copyright 2007-2008, Haiku, Inc. All Rights Reserved.
|
2007-10-16 00:13:55 +04:00
|
|
|
* Distributed under the terms of the MIT License.
|
|
|
|
*/
|
2002-07-09 16:24:59 +04:00
|
|
|
#ifndef _BE_BUILD_H
|
|
|
|
#define _BE_BUILD_H
|
|
|
|
|
2007-10-16 00:13:55 +04:00
|
|
|
|
2002-07-09 16:24:59 +04:00
|
|
|
#define B_BEOS_VERSION_4 0x0400
|
|
|
|
#define B_BEOS_VERSION_4_5 0x0450
|
|
|
|
#define B_BEOS_VERSION_5 0x0500
|
|
|
|
|
|
|
|
#define B_BEOS_VERSION B_BEOS_VERSION_5
|
2007-10-16 00:13:55 +04:00
|
|
|
#define B_BEOS_VERSION_MAUI B_BEOS_VERSION_5
|
2002-07-09 16:24:59 +04:00
|
|
|
|
2009-05-13 00:55:49 +04:00
|
|
|
// Haiku (API) version
|
|
|
|
#define B_HAIKU_VERSION_1_ALPHA_1 0x0010
|
|
|
|
#define B_HAIKU_VERSION_1 0x0100
|
|
|
|
|
|
|
|
#define B_HAIKU_VERSION B_HAIKU_VERSION_1_ALPHA_1
|
|
|
|
|
|
|
|
// Haiku ABI
|
|
|
|
#define B_HAIKU_ABI_GCC_2 0x01
|
|
|
|
#define B_HAIKU_ABI_GCC_4 0x02
|
|
|
|
|
|
|
|
#if __GNUC__ == 2
|
|
|
|
# define B_HAIKU_ABI B_HAIKU_ABI_GCC_2
|
|
|
|
#elif __GNUC__ == 4
|
|
|
|
# define B_HAIKU_ABI B_HAIKU_ABI_GCC_4
|
2008-04-09 18:21:45 +04:00
|
|
|
#else
|
2009-05-13 00:55:49 +04:00
|
|
|
# error Unsupported gcc version!
|
2002-07-09 16:24:59 +04:00
|
|
|
#endif
|
|
|
|
|
2009-05-13 00:55:49 +04:00
|
|
|
|
|
|
|
#define _UNUSED(argument) argument
|
|
|
|
#define _PACKED __attribute__((packed))
|
|
|
|
#define _PRINTFLIKE(_format_, _args_) \
|
|
|
|
__attribute__((format(__printf__, _format_, _args_)))
|
|
|
|
#define _EXPORT
|
|
|
|
#define _IMPORT
|
|
|
|
|
2003-05-15 18:54:08 +04:00
|
|
|
#endif /* _BE_BUILD_H */
|