From 8fd131a9d4411280622683ac11a6e30783b2ac07 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Mon, 13 Mar 2006 05:01:34 +0000 Subject: r14294: conditionally define _PUBLIC_, so you can disable it easily with -D_PUBLIC_= (This used to be commit 6c6bd77ec2eb7d47e1f2c54f939d479e7d0fd7d9) --- source4/include/includes.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'source4/include') 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) -- cgit