summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrediano Ziglio <fziglio@redhat.com>2016-03-23 13:37:28 +0000
committerFrediano Ziglio <fziglio@redhat.com>2016-03-23 13:44:22 +0000
commitc51f1126eb69da8e986ec6ff2cbe4bc953ca9dca (patch)
tree90e953dccacc3568d921ba2288886134e21eaa9f
parent4f6c1765c79858bf0abf5768874789be2d57c2dc (diff)
build-sys: use safer SPICE_CONTAINEROF version
Enable additional checks for this macro. Signed-off-by: Frediano Ziglio <fziglio@redhat.com> Acked-by: Christophe Fergeau <cfergeau@redhat.com>
-rw-r--r--configure.ac2
1 files changed, 2 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index f5445c04..9541b598 100644
--- a/configure.ac
+++ b/configure.ac
@@ -212,6 +212,8 @@ AC_CACHE_CHECK([if -Wl,--version-script works], [spice_cv_ld_version_script],
AM_CONDITIONAL([HAVE_LD_VERSION_SCRIPT],
[test x"$spice_cv_ld_version_script" = xyes])
+AC_DEFINE([SPICE_USE_SAFER_CONTAINEROF], [1], [Enable more type safe version of SPICE_CONTAINEROF])
+
AC_SUBST(SPICE_REQUIRES)
AC_SUBST(SPICE_NONPKGCONFIG_CFLAGS)
AC_SUBST(SPICE_NONPKGCONFIG_LIBS)