3 ms·
In my portable code I #define standard functions like main and fopen to their wide equivalents when building on Windows. This does mean I can't just use char*
by masfuerte 2y ago
In my portable code I #define standard functions like main and fopen to their wide equivalents when building on Windows.
This does mean I can't just use char* and unadorned string literals, so I define a tchar type (which is char on Linux and wchar_t on Windows) and an _T() macro for string literals.
This mostly works without thinking about it.