diff options
Diffstat (limited to 'source3/include/includes.h')
-rw-r--r-- | source3/include/includes.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/source3/include/includes.h b/source3/include/includes.h index 538bdd75ec..b341d1ee95 100644 --- a/source3/include/includes.h +++ b/source3/include/includes.h @@ -28,6 +28,14 @@ #include "lib/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 */ + /* 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) */ |