xref: /haiku/headers/private/system/symbol_visibility.h (revision 610f99c838cb661ff85377789ffd3ad4ff672a08)
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