2003-08-13 05:53:07 +04:00
# 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
2007-07-10 06:07:03 +04:00
the Free Software Foundation ; either version 3 of the License , or
2003-08-13 05:53:07 +04:00
( 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
2007-07-10 06:07:03 +04:00
along with this program . If not , see < http : //www.gnu.org/licenses/>.
2003-08-13 05:53:07 +04:00
*/
2008-09-16 18:30:14 +04:00
# include "../replace/replace.h"
2006-09-13 13:23:05 +04:00
/* make sure we have included the correct config.h */
2006-10-11 15:52:49 +04:00
# ifndef NO_CONFIG_H /* for some tests */
2006-09-13 13:23:05 +04:00
# ifndef CONFIG_H_IS_FROM_SAMBA
2006-09-13 13:27:33 +04:00
# error "make sure you have removed all config.h files from standalone builds!"
2006-09-13 13:23:05 +04:00
# error "the included config.h isn't from samba!"
2003-08-13 05:53:07 +04:00
# endif
2006-09-13 13:23:05 +04:00
# endif /* NO_CONFIG_H */
2006-10-11 15:52:49 +04:00
2006-09-09 05:49:38 +04:00
# include "system/time.h"
# include "system/wait.h"
2010-01-25 14:51:35 +03:00
# include "system/locale.h"
2003-08-13 05:53:07 +04:00
2009-02-02 10:52:44 +03:00
/* 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 ) */
2010-11-17 12:36:37 +03:00
# if !defined(__cplusplus) && defined(DEVELOPER) && defined(__linux__)
2009-02-02 10:52:44 +03:00
# 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
2003-08-13 05:53:07 +04:00
/* Lists, trees, caching, database... */
2007-08-31 04:31:32 +04:00
# include <talloc.h>
2007-09-21 06:00:50 +04:00
# ifndef _PRINTF_ATTRIBUTE
# define _PRINTF_ATTRIBUTE(a1, a2) PRINTF_ATTRIBUTE(a1, a2)
# endif
2008-11-01 05:14:43 +03:00
# include "../lib/util/attr.h"
2015-03-05 13:26:46 +03:00
/* debug.h need to be included before samba_util.h for the macro SMB_ASSERT */
2011-02-24 08:14:03 +03:00
# include "../lib/util/debug.h"
2011-09-21 01:26:36 +04:00
# include "../lib/util/samba_util.h"
2006-03-18 18:42:57 +03:00
2006-03-25 21:47:47 +03:00
# include "libcli/util/error.h"
2005-06-07 11:22:25 +04:00
2003-08-13 05:53:07 +04:00
/* String routines */
2008-10-11 23:05:38 +04:00
# include "../lib/util/safe_string.h"
2003-08-13 05:53:07 +04:00
2009-04-15 00:02:29 +04:00
/* Thread functions. */
# include "../lib/util/smb_threads.h"
# include "../lib/util/smb_threads_internal.h"
2012-06-28 22:59:51 +04:00
/* samba_setXXid functions. */
# include "../lib/util/setid.h"
2005-01-21 16:29:24 +03:00
# endif /* _INCLUDES_H */