This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Problem when cross-compiling trunk in libgcc2.c


Ozkan Sezer wrote:
> On Thu, Mar 19, 2009 at 8:04 PM, Vincent R. <forumer@smartmobili.com> wrote:

>> However you are wrong about DWORD definition it has always be defined
>> like this :
>>
>> typedef unsigned long DWORD, *PDWORD, *LPDWORD;
>>
>> at least windows.
>>
> 
> A DWORD on windows is an unsigned 32 bit integer, therefore even
> if you use long, it won't matter because long is 32 bits for both win32
> and for win64.

  But you will get type-safety or conversion warnings if you mix long and int.
 Even though the size is the same, the types are not directly compatible.
Case in point:

http://cygwin.com/ml/cygwin/2009-03/threads.html#00492

    cheers,
      DaveK


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]