public: add macro for defining variable length array in public headers
authorJuergen Gross <jgross@suse.com>
Tue, 3 Sep 2019 12:47:18 +0000 (14:47 +0200)
committerJan Beulich <jbeulich@suse.com>
Tue, 3 Sep 2019 12:47:18 +0000 (14:47 +0200)
commitc0536ed315b26e93d62bcbc296764d6a35b13ae1
treed1a6ee5f2636bb7c49b45567c8092db6d957d4a1
parent4dc12371f3f8f61fb9e9eec8a89d0755880bdd62
public: add macro for defining variable length array in public headers

Several public headers of the hypervisor contain structures with
variable length arrays. In order to be usable with different compilers
those definitions are depending on the compiler type and the standard
supported by the compiler.

In order to avoid open coding the different variants in each header
add a common macro for that purpose in xen.h.

This at once corrects most of the definitions which miss one case
leading to not defining the array at all.

Signed-off-by: Juergen Gross <jgross@suse.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
xen/include/public/arch-x86/hvm/save.h
xen/include/public/arch-x86/pmu.h
xen/include/public/argo.h
xen/include/public/physdev.h
xen/include/public/version.h
xen/include/public/xen-compat.h
xen/include/public/xen.h