That's the way it for Windows and the behavior is the same for Microsoft
Visual C++.And since it's been that way for so long, changing it would break
a lot of code even if it were possible.

This behavior is different than in Linux where types would grow to 8 bytes.

-----Original Message-----
From: [email protected] <[email protected]> 
Sent: Tuesday, April 17, 2018 9:58 AM
To: [email protected]
Subject: [Mingw-w64-public] sizeof long

Hi,

Why is it that on our x86_64 compilers sizeof long is only 4 ?
Does it absolutely have to be that way ? .... Would it be possible to design
a switch that would enable 8 byte longs ?

The mismatch between linux and windows in this regard is a real pita, and
I'm curious about the reason(s) that it exists.
(A link to relevant explanation would be fine.)

Cheers,
Rob 


----------------------------------------------------------------------------
--
Check out the vibrant tech community on one of the world's most engaging
tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to