On 06.06.2010 15:22, Ozkan Sezer wrote:
> On Sun, Jun 6, 2010 at 3:58 PM, Henry N. wrote:
>> I personally stick on the SVN revision 42435, I found somewhere in mingw
>> headers.
>> Use this step to load DDK headers:
>>
>>       cd .../sezero/W64_160271/x86_64-w64-mingw32/include
>>       svn checkout -r 42435
>> svn://svn.reactos.org/reactos/trunk/reactos/include/ddk ddk
>>
>> Than fix a small warning:
>> --- x86_64-w64-mingw32/include/ddk/ntdef.h
>> +++ x86_64-w64-mingw32/include/ddk/ntdef.h
>> @@ -14,7 +14,7 @@
>>    #include<string.h>
>>
>>
>> -typedef unsigned long POINTER_64; // FIXME! HACK!!!
>> +#define POINTER_64 /* FIXME! HACK!!! */
> Why not just use unsigned long long? (didn't dive into the
> issue, just as question.)

With original typedef you will have this warning:
x86_64-w64-mingw32/include/ddk/ntdef.h:17: warning: useless type name in empty 
declaration

"POINTER_64" is later used in this way only:

        #define NULL64  ((void * POINTER_64)0)

So, I would say NULL64 is simple the same as NULL. I don't know who as added 
the stuff of POINTER_64. Maybe it is to create a 64 bit pointer under 32 bit 
code? Here we are in 64 bit, so simply remove POINTER_64 from NULL64 or clear 
POINTER_64 out.

-- 
Henry N.


------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to