Problems with C/C++ compilers

Dmitry Belyavsky <[email protected]> Thu, 11 Jul 2019 19:27:06 +0300
Newsgroups gmane.text.xml.xmlsec
Message-ID <CADqLbzK5-nhSbehAisiBw1KzPtP1p51kQYj8A1Vp9m8Pja5dPQ@mail.gmail.com>
--===============1469432412==
Content-Type: multipart/alternative; boundary="0000000000006bfdd8058d6a447d"

--0000000000006bfdd8058d6a447d
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

Hello,

We have a rather ancient instance of XMLSec (smth like 1.2.20) and a
homebrew =D0=A1++ wrapper around it.

I came across that a call of sizeof() for various structures in C and C++
give different results causing Bad Things when I try to access various
fields of these structures.

Is there any cheap way to fix this behavior?

Thanks in advance!

--=20
SY, Dmitry Belyavsky

--0000000000006bfdd8058d6a447d
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">Hello,<div><br></div><div>We have a rather ancient instanc=
e of XMLSec (smth like 1.2.20) and a homebrew =D0=A1++ wrapper around it.=
=C2=A0</div><div><br></div><div>I came across that a call of sizeof() for v=
arious structures in C and C++ give different results causing Bad Things wh=
en I try to access various fields of these structures.=C2=A0</div><div><br>=
</div><div>Is there any cheap way to fix this behavior?=C2=A0</div><div><br=
></div><div>Thanks in advance!<br clear=3D"all"><div><br></div>-- <br><div =
dir=3D"ltr" class=3D"gmail_signature" data-smartmail=3D"gmail_signature">SY=
, Dmitry Belyavsky</div></div></div>

--0000000000006bfdd8058d6a447d--

--===============1469432412==
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: base64
Content-Disposition: inline

X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KeG1sc2VjIG1h
aWxpbmcgbGlzdAp4bWxzZWNAYWxla3NleS5jb20KaHR0cDovL3d3dy5hbGVrc2V5LmNvbS9tYWls
bWFuL2xpc3RpbmZvL3htbHNlYwo=

--===============1469432412==--