mirror of
https://github.com/samba-team/samba.git
synced 2025-04-24 22:50:23 +03:00
tdb: Fix invalid syntax in tdb.h
Defining _PUBLIC_ in the same way as in talloc.h resolves an issue with a previous fix for Solaris Studio compiler 12.4 that prefixed all calls in tdb.h with _PUBLIC_. Thanks to Lukas Slebodnik <lslebodn@redhat.com>. Bug: https://bugzilla.samba.org/show_bug.cgi?id=14762 Guenther Signed-off-by: Günther Deschner <gd@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
This commit is contained in:
parent
b724c1e6a6
commit
aacd3ecb45
@ -33,6 +33,19 @@ extern "C" {
|
||||
#include <signal.h>
|
||||
#include <stdbool.h>
|
||||
|
||||
/* for old gcc releases that don't have the feature test macro __has_attribute */
|
||||
#ifndef __has_attribute
|
||||
#define __has_attribute(x) 0
|
||||
#endif
|
||||
|
||||
#ifndef _PUBLIC_
|
||||
#if __has_attribute(visibility)
|
||||
#define _PUBLIC_ __attribute__((visibility("default")))
|
||||
#else
|
||||
#define _PUBLIC_
|
||||
#endif
|
||||
#endif
|
||||
|
||||
/**
|
||||
* @defgroup tdb The tdb API
|
||||
*
|
||||
|
Loading…
x
Reference in New Issue
Block a user