I have a macro:
#define DECLARE_TYPEDEFS(name) \
typedef name* name##_PTR; \
typedef name& name##_REF; \
typedef const name name##_CONST; \
typedef const name* name##_CONST_PTR; \
typedef const name& name##_CONST_REF;
DECLARE_TYPEDEFS(INT); // Note: INT is declared as:
// typedef int INT; within WinDef.h...
Until my latest update (VS2008-Pro), this worked just fine... After the update, I get the following message for INT, UINT, LONG, ULONG and DWORD.
Quote: "
jtk_common.h(446) : error C2040: 'INT_PTR' : 'INT *' differs in levels of indirection from '__w64 int'
"
Does anyone know how to alleviate this error or do I *have* to re-typedef the standard MS types to my own...?
I've already tried:
typedef unsigned long JTDWORD;
DECLARE_TYPEDEFS(JTDWORD);
without errors, but would really rather *not* re-declare all of the *basic* types if I don't have to...
Any help wold be appreciated...
JTK