summaryrefslogtreecommitdiff
path: root/lib/replace
diff options
context:
space:
mode:
Diffstat (limited to 'lib/replace')
-rw-r--r--lib/replace/replace.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/lib/replace/replace.h b/lib/replace/replace.h
index 7adc224bf2..713634e541 100644
--- a/lib/replace/replace.h
+++ b/lib/replace/replace.h
@@ -753,4 +753,22 @@ char *ufc_crypt(const char *key, const char *salt);
#define fdatasync(fd) fsync(fd)
#endif
+/* these are used to mark symbols as local to a shared lib, or
+ * publicly available via the shared lib API */
+#ifndef _PUBLIC_
+#ifdef HAVE_VISIBILITY_ATTR
+#define _PUBLIC_ __attribute__((visibility("default")))
+#else
+#define _PUBLIC_
+#endif
+#endif
+
+#ifndef _PRIVATE_
+#ifdef HAVE_VISIBILITY_ATTR
+# define _PRIVATE_ __attribute__((visibility("hidden")))
+#else
+# define _PRIVATE_
+#endif
+#endif
+
#endif /* _LIBREPLACE_REPLACE_H */