mirror of
https://github.com/netwide-assembler/nasm
synced 2026-08-26 16:23:04 -04:00
Fix autoconf 2.68 warning.
The first argument of AC_COMPILE_IFELSE needs to be wrapped with AC_LANG_SOURCE.
This commit is contained in:
parent
cb9a459560
commit
0b2c41d0d3
1 changed files with 2 additions and 3 deletions
5
aclocal.m4
vendored
5
aclocal.m4
vendored
|
|
@ -21,8 +21,7 @@ dnl OpenWatcom 1.8 has a broken _Bool type that we don't want to use.
|
|||
dnl --------------------------------------------------------------------------
|
||||
AC_DEFUN(PA_WORKING_BOOL,
|
||||
[AC_MSG_CHECKING([if $CC has a working bool type])
|
||||
AC_COMPILE_IFELSE(
|
||||
[
|
||||
AC_COMPILE_IFELSE([AC_LANG_SOURCE([
|
||||
#ifndef __cplusplus
|
||||
#include <stdbool.h>
|
||||
#endif
|
||||
|
|
@ -30,7 +29,7 @@ int foo(bool x, int y)
|
|||
{
|
||||
return x+y;
|
||||
}
|
||||
],
|
||||
])],
|
||||
[AC_MSG_RESULT([yes])
|
||||
AC_DEFINE(HAVE_WORKING_BOOL, 1,
|
||||
[Define to 1 if your compiler has a correct implementation of bool])],
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue