diff --git a/device/win_usb/win_usb.cpp b/device/win_usb/win_usb.cpp index e6c6e14..49ade0c 100644 --- a/device/win_usb/win_usb.cpp +++ b/device/win_usb/win_usb.cpp @@ -17,7 +17,7 @@ #pragma comment(lib, "rpcrt4.lib") #pragma comment(lib, "advapi32.lib") // for Reg... -#if defined(OEM_NONE) || defined(OEM_LISCHENG) || defined(OEM_HANWANG) +#if defined(OEM_NONE) || defined(OEM_LISCHENG) || defined(OEM_HANWANG)|| defined(OEM_ZHONGJING) #include "../wrapper/hg_log.h" #else #define VLOG_MINI_1(l, f, d) printf(f, d) @@ -47,7 +47,7 @@ void usb_callback::notify(libusb_context* ctx, usb_device* dev, int ev) } std::string u2utf8(const wchar_t* u) { -#if defined(OEM_NONE) || defined(OEM_LISCHENG) || defined(OEM_HANWANG) +#if defined(OEM_NONE) || defined(OEM_LISCHENG) || defined(OEM_HANWANG) || defined(OEM_ZHONGJING) return hg_log::u2utf8(u); #else int len = WideCharToMultiByte(CP_UTF8, 0, u, lstrlenW(u), NULL, 0, NULL, NULL);