tlx
visibility_hidden.hpp
Go to the documentation of this file.
1/*******************************************************************************
2 * tlx/define/visibility_hidden.hpp
3 *
4 * Part of tlx - http://panthema.net/tlx
5 *
6 * Copyright (C) 2019 Timo Bingmann <tb@panthema.net>
7 *
8 * All rights reserved. Published under the Boost Software License, Version 1.0
9 ******************************************************************************/
10
11#ifndef TLX_DEFINE_VISIBILITY_HIDDEN_HEADER
12#define TLX_DEFINE_VISIBILITY_HIDDEN_HEADER
13
14namespace tlx {
15
16//! \addtogroup tlx_define
17//! \{
18
19/******************************************************************************/
20// __attribute__ ((visibility ("hidden")))
21
22#if defined(__GNUC__) || defined(__clang__)
23#define TLX_VISIBILITY_HIDDEN __attribute__ ((visibility("hidden")))
24#else
25#define TLX_VISIBILITY_HIDDEN
26#endif
27
28//! \}
29
30} // namespace tlx
31
32#endif // !TLX_DEFINE_VISIBILITY_HIDDEN_HEADER
33
34/******************************************************************************/