1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Reuse the default AC_LANG_PROGRAM(C) definition

This commit is contained in:
Nobuyoshi Nakada 2022-01-23 00:37:55 +09:00
parent ad150a1459
commit 355bc37196
No known key found for this signature in database
GPG key ID: 7CD2805BFA3770C6

View file

@ -3,15 +3,7 @@ dnl
dnl Autoconf 2.67 fails to detect `-Werror=old-style-definition` due
dnl to the old style definition of `main`.
m4_version_prereq([2.70], [], [
m4_define([AC_LANG_PROGRAM(C)],
[$1
int
main (void)
{
$2
;
return 0;
}])
m4_defun([AC_LANG_PROGRAM(C)], m4_bpatsubst(m4_defn([AC_LANG_PROGRAM(C)]), [main ()], [main (void)]))
])dnl
dnl
AC_DEFUN([RUBY_TRY_CFLAGS], [