897514785a
versioning symbols, and private macro DEFINE_LIBROOT_KERNEL_SYMBOL_VERSION() for symbols compiled into both libroot and kernel. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30828 a95241bf-73f2-0310-859d-f6bbb57e9c96
21 lines
540 B
C
21 lines
540 B
C
/*
|
|
* Copyright 2009, Ingo Weinhold, ingo_weinhold@gmx.de.
|
|
* Distributed under the terms of the MIT License.
|
|
*/
|
|
#ifndef _SYMBOL_VERSIONING_H
|
|
#define _SYMBOL_VERSIONING_H
|
|
|
|
#include <BeBuild.h>
|
|
|
|
|
|
#ifdef _KERNEL_MODE
|
|
# define DEFINE_LIBROOT_KERNEL_SYMBOL_VERSION(function, symbol, version) \
|
|
B_DEFINE_SYMBOL_VERSION(function, symbol "KERNEL_" version)
|
|
#else
|
|
# define DEFINE_LIBROOT_KERNEL_SYMBOL_VERSION(function, symbol, version) \
|
|
B_DEFINE_SYMBOL_VERSION(function, symbol "LIBROOT_" version)
|
|
#endif
|
|
|
|
|
|
#endif /* _SYMBOL_VERSIONING_H */
|