summaryrefslogtreecommitdiff
path: root/source4/include
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2006-03-13 05:01:34 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:57:09 -0500
commit8fd131a9d4411280622683ac11a6e30783b2ac07 (patch)
treebe7cb449532e735ec2640c5399bf7688f3fc343a /source4/include
parent964373b25d3dc015951fb00d9c8c68632890a55e (diff)
downloadsamba-8fd131a9d4411280622683ac11a6e30783b2ac07.tar.gz
samba-8fd131a9d4411280622683ac11a6e30783b2ac07.tar.bz2
samba-8fd131a9d4411280622683ac11a6e30783b2ac07.zip
r14294: conditionally define _PUBLIC_, so you can disable it easily with -D_PUBLIC_=
(This used to be commit 6c6bd77ec2eb7d47e1f2c54f939d479e7d0fd7d9)
Diffstat (limited to 'source4/include')
-rw-r--r--source4/include/includes.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/source4/include/includes.h b/source4/include/includes.h
index 71fa67c251..fb3bf44bf4 100644
--- a/source4/include/includes.h
+++ b/source4/include/includes.h
@@ -36,11 +36,13 @@
/** Feel free to add definitions for other compilers here. */
#endif
+#ifndef _PUBLIC_
#ifdef HAVE_VISIBILITY_ATTR
# define _PUBLIC_ __attribute__((visibility("default")))
#else
# define _PUBLIC_
#endif
+#endif
#ifndef PRINTF_ATTRIBUTE
#if !defined(NO_PRINTF_ATTRIBUTE) && (__GNUC__ >= 3)