The cause for that I was suggesting __32LONG is that name is more
unlikely to be mixed-up with a real type.

Regards,
Kai

2012/7/12 Ozkan Sezer <seze...@gmail.com>:
> On 7/12/12, Corinna Vinschen <vinsc...@redhat.com> wrote:
>> Hi,
>>
>> unused so far, but that's the obvious starting point for the entire
>> operation as discussed on IRC.
>>
>>
>> Corinna
>>
>>
>>       * _mingw.h.in (__32LONG): Define.  Explain what it's good for.
>>
>
> Any specific reason not to name it __LONG32 or something?
>
> Maybe Jacek has something to say, too:  the directx headers from Wine
> somewhat recently started using __MSABI_LONG for a similar purpose
> (i.e. not as a type, but for type suffix, e.g. 1L vs. __MSABI_LONG(1))
>
>>
>> Index: _mingw.h.in
>> ===================================================================
>> --- _mingw.h.in       (revision 5223)
>> +++ _mingw.h.in       (working copy)
>> @@ -17,6 +17,17 @@
>>  #include "_cygwin.h"
>>  #endif
>>
>> +/* Target specific macro replacement for type "long".  In the Windows API,
>> +   the type long is always 32 bit, even if the target is 64 bit (LLP64).
>> +   On 64 bit Cygwin, the type long is 64 bit (LP64).  So, to get the right
>> +   sized definitions and declarations, all usage of type long in the
>> Windows
>> +   headers have to be replaced by the below defined macro __32LONG. */
>> +#ifndef __LP64__     /* 32 bit target, 64 bit Mingw target */
>> +#define __32LONG long
>> +#else                        /* 64 bit Cygwin target */
>> +#define __32LONG int
>> +#endif
>> +
>>  /* C/C++ specific language defines.  */
>>  #ifdef _WIN64
>>  #ifdef __stdcall
>
> --
> O.S.
>
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> Mingw-w64-public mailing list
> Mingw-w64-public@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/mingw-w64-public



-- 
|  (\_/) This is Bunny. Copy and paste
| (='.'=) Bunny into your signature to help
| (")_(") him gain world domination

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to