1/*
2 * Copyright 2011, Ingo Weinhold, ingo_weinhold@gmx.de.
3 * Distributed under the terms of the MIT License.
4 */
5
6#ifndef SYMBOL_VISIBILITY_H
7#define SYMBOL_VISIBILITY_H
8
9
10#if __GNUC__ >= 4
11#	define HIDDEN_FUNCTION(function)	do {} while (0)
12#	define HIDDEN_FUNCTION_ATTRIBUTE	__attribute__((visibility("hidden")))
13#else
14#	define HIDDEN_FUNCTION(function)	asm volatile(".hidden " #function)
15#	define HIDDEN_FUNCTION_ATTRIBUTE
16#endif
17
18
19#endif /* !SYMBOL_VISIBILITY_H */
20