mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +03:00
df9e7c7ae5
This makes it more obvious where this legacy code is used Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Sun Nov 20 06:23:19 CET 2016 on sn-devel-144
77 lines
2.6 KiB
C
77 lines
2.6 KiB
C
#ifndef _INCLUDES_H
|
|
#define _INCLUDES_H
|
|
/*
|
|
Unix SMB/CIFS implementation.
|
|
Machine customisation and include handling
|
|
Copyright (C) Andrew Tridgell 1994-1998
|
|
Copyright (C) 2002 by Martin Pool <mbp@samba.org>
|
|
|
|
This program is free software; you can redistribute it and/or modify
|
|
it under the terms of the GNU General Public License as published by
|
|
the Free Software Foundation; either version 3 of the License, or
|
|
(at your option) any later version.
|
|
|
|
This program is distributed in the hope that it will be useful,
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
GNU General Public License for more details.
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
*/
|
|
|
|
#include "../replace/replace.h"
|
|
|
|
/* make sure we have included the correct config.h */
|
|
#ifndef NO_CONFIG_H /* for some tests */
|
|
#ifndef CONFIG_H_IS_FROM_SAMBA
|
|
#error "make sure you have removed all config.h files from standalone builds!"
|
|
#error "the included config.h isn't from samba!"
|
|
#endif
|
|
#endif /* NO_CONFIG_H */
|
|
|
|
#include "system/time.h"
|
|
#include "system/wait.h"
|
|
#include "system/locale.h"
|
|
|
|
/* only do the C++ reserved word check when we compile
|
|
to include --with-developer since too many systems
|
|
still have comflicts with their header files (e.g. IRIX 6.4) */
|
|
|
|
#if !defined(__cplusplus) && defined(DEVELOPER) && defined(__linux__)
|
|
#define class #error DONT_USE_CPLUSPLUS_RESERVED_NAMES
|
|
#define private #error DONT_USE_CPLUSPLUS_RESERVED_NAMES
|
|
#define public #error DONT_USE_CPLUSPLUS_RESERVED_NAMES
|
|
#define protected #error DONT_USE_CPLUSPLUS_RESERVED_NAMES
|
|
#define template #error DONT_USE_CPLUSPLUS_RESERVED_NAMES
|
|
#define this #error DONT_USE_CPLUSPLUS_RESERVED_NAMES
|
|
#define new #error DONT_USE_CPLUSPLUS_RESERVED_NAMES
|
|
#define delete #error DONT_USE_CPLUSPLUS_RESERVED_NAMES
|
|
#define friend #error DONT_USE_CPLUSPLUS_RESERVED_NAMES
|
|
#endif
|
|
|
|
/* Lists, trees, caching, database... */
|
|
#include <talloc.h>
|
|
#ifndef _PRINTF_ATTRIBUTE
|
|
#define _PRINTF_ATTRIBUTE(a1, a2) PRINTF_ATTRIBUTE(a1, a2)
|
|
#endif
|
|
#include "../lib/util/attr.h"
|
|
|
|
/* debug.h need to be included before samba_util.h for the macro SMB_ASSERT */
|
|
#include "../lib/util/debug.h"
|
|
#include "../lib/util/samba_util.h"
|
|
|
|
#include "libcli/util/error.h"
|
|
|
|
/* String routines */
|
|
#include "../lib/util/safe_string.h"
|
|
|
|
/* Thread functions. */
|
|
#include "../lib/util/smb_threads.h"
|
|
#include "../lib/util/smb_threads_internal.h"
|
|
|
|
/* samba_setXXid functions. */
|
|
#include "../lib/util/setid.h"
|
|
|
|
#endif /* _INCLUDES_H */
|