Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
GSoC
GSoC2018
macOS
vlc
Commits
049eadc4
Commit
049eadc4
authored
Nov 07, 2012
by
Rémi Denis-Courmont
Browse files
Robustify static_assert() check
parent
01de23db
Changes
1
Hide whitespace changes
Inline
Side-by-side
configure.ac
View file @
049eadc4
...
...
@@ -515,11 +515,8 @@ AC_LINK_IFELSE([
dnl C11 static_assert()
AC_MSG_CHECKING([for static_assert in assert.h])
AC_PREPROC_IFELSE([AC_LANG_SOURCE([
#include <assert.h>
#ifndef static_assert
# error BOOM!
#endif
AC_LINK_IFELSE([AC_LANG_PROGRAM([#include <assert.h>], [
static_assert(1, "The impossible happened.");
])], [
AC_MSG_RESULT([yes])
AC_DEFINE([HAVE_STATIC_ASSERT], [1], [Define to 1 if <assert.h> defines static_assert.])
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment