haiku/headers/private/system/symbol_versioning.h
Ingo Weinhold 897514785a Introduced macro B_DEFINE_SYMBOL_VERSION() in <BeBuild.h> to help with
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
2009-05-22 14:57:40 +00:00

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 */