Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fs: Undefine CONFIG_FS_LARGEFILE if compiler doesn't support long long #8656

Merged
merged 1 commit into from
Mar 2, 2023

Conversation

xiaoxiang781216
Copy link
Contributor

@xiaoxiang781216 xiaoxiang781216 commented Feb 26, 2023

Summary

to simplify the large file check in many place

Impact

code refactory only

Testing

CI

to simplify the large file check in many place

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
@acassis
Copy link
Contributor

acassis commented Feb 26, 2023

Nice improvement, it makes the code easier to read!

@jerpelea jerpelea merged commit 92b2f1b into apache:master Mar 2, 2023
Comment on lines +947 to +950
#ifndef CONFIG_HAVE_LONG_LONG
# undef CONFIG_FS_LARGEFILE
#endif

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not

config FS_LARGEFILE
	bool "Large File Support"
	default n
	depends on HAVE_LONG_LONG

in Kconfig instead?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can not since HAVE_LONG_LONG isn't a Kconfig option, but define in:
https://github.com/apache/nuttx/blob/master/include/nuttx/compiler.h#L283

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants