frankie,
Did you try it with the original code example I posted?
It fails here.
Hi James
I used your code to test in 32 and 64 bits. Please find attached the demo project.
Maybe you included the header in the wrong place. Remember it must be always the last system header that you include.Please let me know.
EDIT: Ok I got it! My wrong, in the usage description I was not clear enaugh. The former version must have been included after the last
system header, not the last header...
The situation got even worst because you include a C file (that while formally correct should be avoided in C).
So to keep it simple I made a decision to change the code. The new version must be the very first header in your code, can even preceed the system definitions.
I have already updated the
patch, and the code below.