-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
C99 compatibility enhancements for the configure script #2519
Conversation
Duplicate of #2480? |
@thesamesam Looks like I didn't scroll down far enough in the PR list. But this PR here proposes to use |
I only found that one accidentally too. Yeah, I prefer the approach in this one. cc @kraj, are you alright to close yours? |
Yes this is clearly better way please go ahead |
Would you rebase against the latest master, since this is a fix to a building script? Thank you. |
Use AC_USE_SYSTEM_EXTENSIONS to build with _GNU_SOURCE (and similar macros on non-GNU systems), to avoid an implicit declaration of the strptime function. This improves compatibility with future compilers which do not support implicit function declarations.
The gettimeofday function is declared in <sys/time.h>, not <time.h>, according to POSIX and actual systems. This avoids a configure probe failure with compilers which do not support implicit function declarations.
@itchyny Should now be properly rebased. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thank you!
Related to: