util: Use the gcc_struct attribute for packed structures in mingw
authorCorentin Noël <corentin.noel@collabora.com>
Wed, 31 May 2023 15:48:36 +0000 (17:48 +0200)
committerMarge Bot <emma+marge@anholt.net>
Thu, 1 Jun 2023 14:05:55 +0000 (14:05 +0000)
commit86532fa21dee16debf4f96a8b6eb6e894076845e
tree3f206fdb406a6c8dbc56ba47f05df5dd6d45737a
parentb06be7c0028133684e485de467c19ee6e1d32717
util: Use the gcc_struct attribute for packed structures in mingw

Actually set the packing behavior as the intended one when using this attribute,
even on mingw.

Otherwise, the default behavior is to use the ms_struct which makes the structures
use more space in some situations.

Signed-off-by: Corentin Noël <corentin.noel@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23338>
src/util/macros.h