I would like to define the 32 (32 bit compilation) and 64 (64 bit compilation) in Visual C. Is there any predefined macros for this? I’ve scoured through MSDN in vain.
Do you think this kind of definition for 32 and 64 would work?
#define _32_ if !(defined __LP64__ || defined __LLP64__) || defined _WIN32 && !defined _WIN64
// we are compiling for a 32-bit system
the else statement will be _64_ definition
// we are compiling for a 64-bit system
Thanks!
From the docs:
Take your pick.