r14294: conditionally define _PUBLIC_, so you can disable it easily with -D_PUBLIC_=
authorAndrew Tridgell <tridge@samba.org>
Mon, 13 Mar 2006 05:01:34 +0000 (05:01 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 18:57:09 +0000 (13:57 -0500)
(This used to be commit 6c6bd77ec2eb7d47e1f2c54f939d479e7d0fd7d9)

source4/include/includes.h

index 71fa67c251c3ac38ba7126ccf3f00ddfec9e1d7a..fb3bf44bf49434a9c52c315df3f69a2449ecd166 100644 (file)
 /** 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)