[cfe-dev] [libcxx] random_device for Windows needs more storage

Sebastian Redl sebastian.redl at getdesigned.at
Tue Oct 8 08:33:39 PDT 2013


On 2013-10-07 22:20, Yaron Keren wrote:
> The actual data type is typedefULONG_PTR HCRYPTPROV;
> I found two conflicting descriptions in microsoft.com 
> <http://microsoft.com> for ULONG_PTR:
>
> The first 
> http://msdn.microsoft.com/en-us/library/windows/desktop/aa383751(v=vs.85).aspx 
> <http://msdn.microsoft.com/en-us/library/windows/desktop/aa383751%28v=vs.85%29.aspx> says 
> it's always 64 bits:
>
> #if  defined(_WIN64)
>   typedef  unsigned  __int64 ULONG_PTR;
> #else
>   typedef  unsigned  long  ULONG_PTR;
> #endif
>
unsigned long is always 32 bits on Microsoft's compiler.

Sebastian
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20131008/a058839e/attachment.html>


More information about the cfe-dev mailing list