<div dir="ltr">On Thu, Feb 5, 2015 at 2:40 PM, Charles Davis <span dir="ltr"><<a href="mailto:cdavis5x@gmail.com" target="_blank">cdavis5x@gmail.com</a>></span> wrote:<br><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><br>
> On Feb 5, 2015, at 1:20 PM, Austin English <<a href="mailto:austinenglish@gmail.com">austinenglish@gmail.com</a>> wrote:<br>
> +typedef unsigned long ASN1uint32_t;<br>
> +typedef signed long ASN1int32_t;<br>
This won’t do what you (apparently) expect on 64-bit. At the very least, you should use ULONG/DWORD and LONG here.<br>
<br>
> +#ifndef WINAPI<br>
> +#define WINAPI __stdcall<br>
> +#endif<br>
This is most certainly wrong for Wine. I think you should include “windef.h” if you need WINAPI.<br></blockquote><div><br></div><div>The same definition is made in include/bcrypt.h (I considered removing it, then saw that it was already in bcrypt.h).<br> <br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
I’m beginning to wonder if you copied this header (as well as <hidpi.h>) directly from Microsoft’s SDKs. You’ve been around long enough to know that that’s a big no-no around here.<br></blockquote><div><br></div><div>No, mingw:<br><a href="https://github.com/Alexpux/mingw-w64/blob/master/mingw-w64-headers/include/msasn1.h">https://github.com/Alexpux/mingw-w64/blob/master/mingw-w64-headers/include/msasn1.h</a> <br></div></div><a href="https://gitorious.org/mingw/mingw-w32api/source/4c8646e262e08f79e290f5211ab9e7386a85c753:include/ddk/hidpi.h">https://gitorious.org/mingw/mingw-w32api/source/4c8646e262e08f79e290f5211ab9e7386a85c753:include/ddk/hidpi.h</a><br><br></div><div class="gmail_extra">-- <br><div class="gmail_signature">-Austin</div>
</div></div>