PS: For this patch, I needed to know which compiler versions support
__builtin_offsetof. This test program
=
typedef struct { char a; double b; int c; } foo;
int xxx = __builtin_offsetof (foo, c);
#include
int yyy = offsetof (foo, c);
==
following patch fixes it. One in master, a different one for the
stable-202301 branch. (On the stable-202207 branch there is no problem.)
>From b323b5297757c5c904e6aff63454c03361ce Mon Sep 17 00:00:00 2001
From: Bruno Haible
Date: Tue, 24 Jan 2023 13:44:07 +0100
Subject: [PATCH] alignasof, stda