I'm trying to write some C++ code that will work on both Windows and Linux. I currently have this:
#ifdef WINDOWS
HINSTANCE _handle;
#else
void* _handle;
#endif
Is it possible to declare the type to be conditional based on the platform instead so that i could do something like:
#ifdef WINDOWS
//define TYPE = HINSTANCE;
#else
//define TYPE = void*;
#endif
TYPE _handle;