8bd9493d55
for PPC would give compiler errors if this is not defined (to nothing). For the MetroWerks compiler, one needed to explicitely import/export classes and methods, but GCC does not need it. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27405 a95241bf-73f2-0310-859d-f6bbb57e9c96
34 lines
783 B
C
34 lines
783 B
C
/*
|
|
* Copyright 2007-2008, Haiku, Inc. All Rights Reserved.
|
|
* Distributed under the terms of the MIT License.
|
|
*/
|
|
#ifndef _BE_BUILD_H
|
|
#define _BE_BUILD_H
|
|
|
|
|
|
#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
|
|
#define B_BEOS_VERSION_MAUI B_BEOS_VERSION_5
|
|
|
|
#define B_HAIKU_VERSION_1 0x0100
|
|
|
|
#if __GNUC__
|
|
# define _UNUSED(argument) argument
|
|
# define _PACKED __attribute__((packed))
|
|
# define _PRINTFLIKE(_format_, _args_) \
|
|
__attribute__((format(__printf__, _format_, _args_)))
|
|
# define _EXPORT
|
|
# define _IMPORT
|
|
#else
|
|
# define _UNUSED(argument) argument
|
|
# error Define _PACKED for your compiler
|
|
# define _PRINTFLIKE(format, args)
|
|
# define _EXPORT
|
|
# define _IMPORT
|
|
#endif
|
|
|
|
#endif /* _BE_BUILD_H */
|