mirror of
https://github.com/samba-team/samba.git
synced 2025-11-20 08:23:50 +03:00
r12829: fix ldb headers, to not include '<...>' files in .c files
this helps in getting symbol -fvisibility=hidden (GCC 4 feature) working later. metze
This commit is contained in:
committed by
Gerald (Jerry) Carter
parent
ad189553f4
commit
380938e97f
@@ -1,7 +1,17 @@
|
||||
#ifndef _LDB_PRIVATE_INCLUDES_H_
|
||||
#define _LDB_PRIVATE_INCLUDES_H_
|
||||
/*
|
||||
a temporary includes file until I work on the ldb build system
|
||||
*/
|
||||
|
||||
#ifdef _SAMBA_BUILD_
|
||||
|
||||
#include "system/filesys.h"
|
||||
#include "system/iconv.h"
|
||||
#include "system/time.h"
|
||||
|
||||
#else /*_SAMBA_BUILD_*/
|
||||
|
||||
#ifndef _GNU_SOURCE
|
||||
#define _GNU_SOURCE
|
||||
#endif
|
||||
@@ -22,9 +32,16 @@
|
||||
#include <stdint.h>
|
||||
#endif
|
||||
|
||||
#include "ldb.h"
|
||||
#include "ldb_private.h"
|
||||
#include "talloc.h"
|
||||
|
||||
#define discard_const(ptr) ((void *)((intptr_t)(ptr)))
|
||||
#define discard_const_p(type, ptr) ((type *)discard_const(ptr))
|
||||
|
||||
#include "talloc.h"
|
||||
|
||||
#endif /*_SAMBA_BUILD_*/
|
||||
|
||||
#include "ldb.h"
|
||||
#include "ldb_errors.h"
|
||||
#include "ldb_private.h"
|
||||
#include "dlinklist.h"
|
||||
|
||||
#endif /*_LDB_PRIVATE_INCLUDES_H_*/
|
||||
|
||||
Reference in New Issue
Block a user