blob: 4368a19be231feea920c4287820f687ad37f1d68 [file] [log] [blame]
// SPDX-License-Identifier: LGPL-2.1
/*
* Copyright (c) 2005 Silicon Graphics, Inc. All Rights Reserved.
*/
#ifndef __XFS_H__
#define __XFS_H__
#if defined(__linux__)
#include <xfs/linux.h>
#elif defined(__FreeBSD__)
#include <xfs/freebsd.h>
#elif defined(__FreeBSD_kernel__)
#include <xfs/gnukfreebsd.h>
#elif defined(__APPLE__)
#include <xfs/darwin.h>
#else
# error unknown platform... have fun porting!
#endif
/*
* make sure that any user of the xfs headers has a 64bit off_t type
*/
extern int xfs_assert_largefile[sizeof(off_t)-8];
/*
* sparse kernel source annotations
*/
#ifndef __user
#define __user
#endif
/*
* kernel struct packing shortcut
*/
#ifndef __packed
#define __packed __attribute__((packed))
#endif
#ifndef BUILD_BUG_ON
#define BUILD_BUG_ON(condition) ((void)sizeof(char[1 - 2*!!(condition)]))
#endif
#include <xfs/xfs_types.h>
#include <xfs/xfs_fs.h>
#endif /* __XFS_H__ */