Author: rinrab Date: Sat Sep 21 11:28:14 2024 New Revision: 1920824 URL: http://svn.apache.org/viewvc?rev=1920824&view=rev Log: fs-modules: Make their fs_init headers to be 'complete' headers, containing all dependent headers.
* subversion/libsvn_fs_base/fs_init.h, subversion/libsvn_fs_fs/fs_init.h, subversion/libsvn_fs_x/fs_init.h (): Add #ifndef and #define to disallow including it twice. (includes): Include fs-loader.h, because it is their dependency. (): Remove check for fs-loader.h included and erroring if so. Modified: subversion/trunk/subversion/libsvn_fs_base/fs_init.h subversion/trunk/subversion/libsvn_fs_fs/fs_init.h subversion/trunk/subversion/libsvn_fs_x/fs_init.h Modified: subversion/trunk/subversion/libsvn_fs_base/fs_init.h URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_fs_base/fs_init.h?rev=1920824&r1=1920823&r2=1920824&view=diff ============================================================================== --- subversion/trunk/subversion/libsvn_fs_base/fs_init.h (original) +++ subversion/trunk/subversion/libsvn_fs_base/fs_init.h Sat Sep 21 11:28:14 2024 @@ -22,9 +22,10 @@ * ==================================================================== */ -#ifndef LIBSVN_FS_LOADER_H -#error Please include libsvn_fs/fs_loader.h instead of this file -#else +#ifndef SVN_LIBSVN_FS_BASE_INIT +#define SVN_LIBSVN_FS_BASE_INIT + +#include "../libsvn_fs/fs-loader.h" svn_error_t *svn_fs_base__init(const svn_version_t *loader_version, fs_library_vtable_t **vtable, Modified: subversion/trunk/subversion/libsvn_fs_fs/fs_init.h URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_fs_fs/fs_init.h?rev=1920824&r1=1920823&r2=1920824&view=diff ============================================================================== --- subversion/trunk/subversion/libsvn_fs_fs/fs_init.h (original) +++ subversion/trunk/subversion/libsvn_fs_fs/fs_init.h Sat Sep 21 11:28:14 2024 @@ -21,9 +21,10 @@ * ==================================================================== */ -#ifndef LIBSVN_FS_LOADER_H -#error Please include libsvn_fs/fs_loader.h instead of this file -#else +#ifndef SVN_LIBSVN_FS_FS_INIT +#define SVN_LIBSVN_FS_FS_INIT + +#include "../libsvn_fs/fs-loader.h" svn_error_t *svn_fs_fs__init(const svn_version_t *loader_version, fs_library_vtable_t **vtable, Modified: subversion/trunk/subversion/libsvn_fs_x/fs_init.h URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_fs_x/fs_init.h?rev=1920824&r1=1920823&r2=1920824&view=diff ============================================================================== --- subversion/trunk/subversion/libsvn_fs_x/fs_init.h (original) +++ subversion/trunk/subversion/libsvn_fs_x/fs_init.h Sat Sep 21 11:28:14 2024 @@ -21,9 +21,10 @@ * ==================================================================== */ -#ifndef LIBSVN_FS_LOADER_H -#error Please include libsvn_fs/fs_loader.h instead of this file -#else +#ifndef SVN_LIBSVN_FS_X_INIT +#define SVN_LIBSVN_FS_X_INIT + +#include "../libsvn_fs/fs-loader.h" svn_error_t *svn_fs_x__init(const svn_version_t *loader_version, fs_library_vtable_t **vtable,