util: add MSVC HAS_TRIVIAL_DESTRUCTOR implementation
authorBrian Paul <brianp@vmware.com>
Wed, 9 Nov 2016 21:48:45 +0000 (14:48 -0700)
committerBrian Paul <brianp@vmware.com>
Wed, 9 Nov 2016 21:55:10 +0000 (14:55 -0700)
commit5b92008ae279962dc09bcf98c9e5511a325a2bd9
treea83d1b2b2b94ede92c69ddee53ce9a36486e00d0
parent0f434a68a39f391795dff92c317349d28dd2e638
util: add MSVC HAS_TRIVIAL_DESTRUCTOR implementation

Based on a patch by George Kyriazis but changed to test for
_MSC_VER >= 1800 (Visual Studio 2015).

This fixes the failed CANARY assertion in src/util/ralloc.c:get_header()
on Windows.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=98595
Tested-by: Brian Paul <brianp@vmware.com>
Signed-off-by: Brian Paul <brianp@vmware.com>
src/util/macros.h