mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-10 02:54:58 -06:00
virtiofsd: replace _Static_assert with QEMU_BUILD_BUG_ON
This allows to get rid of a check for older GCC version (which was a bit bogus too since it was falling back on c++ version..) Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com> Message-Id: <20201210134752.780923-7-marcandre.lureau@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
77d35c83d3
commit
db5deef996
1 changed files with 1 additions and 10 deletions
|
@ -807,15 +807,6 @@ void fuse_remove_signal_handlers(struct fuse_session *se);
|
||||||
*
|
*
|
||||||
* On 32bit systems please add -D_FILE_OFFSET_BITS=64 to your compile flags!
|
* On 32bit systems please add -D_FILE_OFFSET_BITS=64 to your compile flags!
|
||||||
*/
|
*/
|
||||||
|
QEMU_BUILD_BUG_ON(sizeof(off_t) != 8);
|
||||||
#if defined(__GNUC__) && \
|
|
||||||
(__GNUC__ > 4 || __GNUC__ == 4 && __GNUC_MINOR__ >= 6) && \
|
|
||||||
!defined __cplusplus
|
|
||||||
_Static_assert(sizeof(off_t) == 8, "fuse: off_t must be 64bit");
|
|
||||||
#else
|
|
||||||
struct _fuse_off_t_must_be_64bit_dummy_struct {
|
|
||||||
unsigned _fuse_off_t_must_be_64bit:((sizeof(off_t) == 8) ? 1 : -1);
|
|
||||||
};
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#endif /* FUSE_COMMON_H_ */
|
#endif /* FUSE_COMMON_H_ */
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue