Undefine primitive datatypes

Hi,

Is there a way where in we can undefine primitive data types?
The requirement is that when I write something like
int a;
the compiler must substitute int with int64 or int depending on certain predefined macros. Since I cannot modify the existing code, the only apparent option I have is to write something like
#if defined (MACROX)
typedef int int;
#else
typedef int __int64;
#endif
But this is not allowed by the compiler.
Hence I thought of undefining the primitive data types and then mapping each of them to desired data types depending on the macros.

Kindly help.

Thank you.
Last edited on
You can't undefine them, although you can do a
#define int __int64

It'll probably end in disaster either way.
Topic archived. No new replies allowed.