diff options
author | Anders Roxell <anders.roxell@linaro.org> | 2016-04-13 19:30:13 +0200 |
---|---|---|
committer | Maxim Uvarov <maxim.uvarov@linaro.org> | 2016-04-15 13:18:21 +0300 |
commit | f562a886695fc8eb3832f4e7a13d4bff80db529a (patch) | |
tree | 4b8a5d879dbe9ace1e46be65bf6b2dcfc2b0419a /include/odp/api/spec/shared_memory.h | |
parent | fc68b7d7277dc1a7b0034fbdf349c7028577d9b0 (diff) |
api: make only the API visible
Internal functions should not be part of symbols that are visible
outside the library. Using -fvisibility=hidden hides all internal
functions from the public ABI.
Suggested-by: Ricardo Salveti <ricardo.salveti@linaro.org>
Signed-off-by: Anders Roxell <anders.roxell@linaro.org>
Reviewed-by: Bill Fischofer <bill.fischofer@linaro.org>
Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>
Diffstat (limited to 'include/odp/api/spec/shared_memory.h')
-rw-r--r-- | include/odp/api/spec/shared_memory.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/odp/api/spec/shared_memory.h b/include/odp/api/spec/shared_memory.h index 5d851ce12..8969462c2 100644 --- a/include/odp/api/spec/shared_memory.h +++ b/include/odp/api/spec/shared_memory.h @@ -19,6 +19,10 @@ extern "C" { #endif +#if __GNUC__ >= 4 +#pragma GCC visibility push(default) +#endif + /** @defgroup odp_shared_memory ODP SHARED MEMORY * Operations on shared memory. * @{ @@ -148,6 +152,10 @@ uint64_t odp_shm_to_u64(odp_shm_t hdl); * @} */ +#if __GNUC__ >= 4 +#pragma GCC visibility pop +#endif + #ifdef __cplusplus } #endif |