aboutsummaryrefslogtreecommitdiff
path: root/include/odp/api/spec/shared_memory.h
diff options
context:
space:
mode:
authorAnders Roxell <anders.roxell@linaro.org>2016-04-19 12:06:15 -0500
committerMaxim Uvarov <maxim.uvarov@linaro.org>2016-04-20 21:14:04 +0300
commitc917fb80a0ed6ad4676d0f65b416b58ac93b3194 (patch)
tree75a82b7ae8c10fa27c28c9847d4dfbe40060fc36 /include/odp/api/spec/shared_memory.h
parent54a607e4aace574eadbeb38c72d738e3b014061e (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> Signed-off-by: Bill Fischofer <bill.fischofer@linaro.org> Reviewed-by: Petri Savolainen <petri.savolainen@nokia.com> 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.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/odp/api/spec/shared_memory.h b/include/odp/api/spec/shared_memory.h
index 5d851ce12..5d31f4199 100644
--- a/include/odp/api/spec/shared_memory.h
+++ b/include/odp/api/spec/shared_memory.h
@@ -13,12 +13,12 @@
#ifndef ODP_API_SHARED_MEMORY_H_
#define ODP_API_SHARED_MEMORY_H_
+#include <odp/api/visibility_begin.h>
#ifdef __cplusplus
extern "C" {
#endif
-
/** @defgroup odp_shared_memory ODP SHARED MEMORY
* Operations on shared memory.
* @{
@@ -152,4 +152,5 @@ uint64_t odp_shm_to_u64(odp_shm_t hdl);
}
#endif
+#include <odp/api/visibility_end.h>
#endif