Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
#ifdef _WIN32
using nchar = wchar_t;
using nstring = std::wstring;
#define NSTRLITERAL(str) L##str
#define nfopen _wfopen
/* ... */
#else
using nchar = char;
using nstring = std::string;
#define NSTRLITERAL(str) str
#define nfopen fopen
/* ... */
#endif // #ifdef _WIN32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment