Correct ifdef for DWORD_PTR, INT_PTR, LONG_PTR, UINT_PTR, ULONG_PTR etc?

Posted by user9876 on Stack Overflow See other posts from Stack Overflow or by user9876
Published on 2010-04-27T17:01:32Z Indexed on 2010/04/27 17:03 UTC
Read the original article Hit count: 318

Filed under:
|
|
|
|

There are some new integer types in the Windows API to support Win64. They haven't always been suppoprted; e.g. they aren't present in MSVC6.

How can I write an #if condition to detect if these types are supported by <windows.h>?

(My code needs to compile under many different versions of Microsoft Visual C++, including MSVC6. So I need to provide my own definitions of these types, with an #if to disable them in newer compilers).

© Stack Overflow or respective owner

Related posts about win64

Related posts about msvc