Skip to content

Commit

Permalink
Fix configure implicit declaration and format warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
sortie authored and daztucker committed Dec 6, 2024
1 parent 11a5e51 commit f129b6e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -628,6 +628,7 @@ case "$host" in
AC_MSG_CHECKING([if compiler allows macro redefinitions])
AC_COMPILE_IFELSE(
[AC_LANG_PROGRAM([[
#include <stdlib.h>
#define testmacro foo
#define testmacro bar]],
[[ exit(0); ]])],
Expand Down Expand Up @@ -4407,7 +4408,11 @@ int main(void)
long long num = 0x7fffffffffffffffll;
#endif
strcpy(expected_out, "9223372036854775807");
#if (SIZEOF_LONG_INT == 8)
snprintf(buf, mazsize, "%ld", num);
#else
snprintf(buf, mazsize, "%lld", num);
#endif
if(strcmp(buf, expected_out) != 0)
exit(1);
exit(0);
Expand Down

0 comments on commit f129b6e

Please sign in to comment.