Search code examples
c++codeblocks

What does this header mean in c++?


#if defined(UNICODE) && !defined(_UNICODE)
    #define _UNICODE
#elif defined(_UNICODE) && !defined(UNICODE)
    #define UNICODE
#endif

this is the header for the default win32 c++ app on codeblocks


Solution

  • It ensures that both UNICODE and _UNICODE are defined if one of them is.