define:定义UNICODE

This commit is contained in:
taynpg 2024-11-29 10:42:07 +08:00
parent 9c396fc579
commit f8adaf2386

View File

@ -6,6 +6,12 @@
#ifdef UNICODE_OFSTR #ifdef UNICODE_OFSTR
using ofString = std::wstring; using ofString = std::wstring;
#define ofT(text) L##text #define ofT(text) L##text
#ifndef UNICODE
#define UNICODE
#endif
#ifndef _UNICODE
#define _UNICODE
#endif
#else #else
using ofString = std::string; using ofString = std::string;
#define ofT(text) text #define ofT(text) text