Skip to content
Snippets Groups Projects
Commit 092a5ab8 authored by Christian Engwer's avatar Christian Engwer
Browse files

fix static_assert test

[[Imported from SVN: r5275]]
parent 26d4900a
No related branches found
No related tags found
No related merge requests found
......@@ -24,11 +24,10 @@ AC_DEFUN([STATIC_ASSERT_CHECK],[
AC_LANG_PUSH([C++])
AC_MSG_CHECKING([whether static_assert is supported])
AC_TRY_COMPILE([],[static_assert(true,"MSG")], [
HAVE_STATIC_ASSERT=no,
AC_MSG_RESULT(yes)], [
HAVE_STATIC_ASSERT=yes,
AC_MSG_RESULT(yes)], [
HAVE_STATIC_ASSERT=no,
AC_MSG_RESULT(no)])
echo HAVE_STATIC_ASSERT $HAVE_STATIC_ASSERT
if test "x$HAVE_STATIC_ASSERT" = xyes; then
AC_DEFINE(HAVE_STATIC_ASSERT, 1, [Define to 1 if static_assert is supported])
fi
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment