util: fix NORETURN for msvc, add HAVE_FUNC_ATTRIBUTE_NORETURN to c99_compat.h
authorRoland Scheidegger <sroland@vmware.com>
Thu, 11 Jan 2018 00:49:00 +0000 (01:49 +0100)
committerRoland Scheidegger <sroland@vmware.com>
Fri, 12 Jan 2018 01:52:10 +0000 (02:52 +0100)
commit85377dc55c55d1c5536cdf9a86ce67ebb59b7e77
tree99c1c36e45c497e58b573fa4cc437b4b2ba768ed
parentad11fc3571e025b22d9feed80a7f499665f7a255
util: fix NORETURN for msvc, add HAVE_FUNC_ATTRIBUTE_NORETURN to c99_compat.h

We've seen some problems internally due to macro redefinition.
Fix this by adding HAVE_FUNC_ATTRIBUTE_NORETURN to c99_compat.h,
and defining it for msvc.
And avoid redefinition just in case.

Reviewed-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
include/c99_compat.h
src/util/macros.h