Skip to content
Snippets Groups Projects
Commit 0735dce0 authored by Martin Nolte's avatar Martin Nolte
Browse files

make HAVE_STATIC_ASSERT work

[[Imported from SVN: r5286]]
parent 7847194e
No related branches found
No related tags found
No related merge requests found
......@@ -24,9 +24,9 @@ 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=yes,
HAVE_STATIC_ASSERT=yes
AC_MSG_RESULT(yes)], [
HAVE_STATIC_ASSERT=no,
HAVE_STATIC_ASSERT=no
AC_MSG_RESULT(no)])
if test "x$HAVE_STATIC_ASSERT" = xyes; then
AC_DEFINE(HAVE_STATIC_ASSERT, 1, [Define to 1 if static_assert is supported])
......
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