mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-25 23:39:10 +08:00
34 lines
1.0 KiB
Diff
34 lines
1.0 KiB
Diff
diff --git a/src/nanodbc.cpp b/src/nanodbc.cpp
|
|
index 8e02d4a..c408af7 100644
|
|
--- a/src/nanodbc.cpp
|
|
+++ b/src/nanodbc.cpp
|
|
@@ -90,7 +90,7 @@
|
|
typedef std::u32string wide_string_type;
|
|
#define NANODBC_CODECVT_TYPE std::codecvt_utf8
|
|
#else
|
|
- typedef std::u16string wide_string_type;
|
|
+ typedef std::wstring wide_string_type;
|
|
#define NANODBC_CODECVT_TYPE std::codecvt_utf8_utf16
|
|
#endif
|
|
typedef wide_string_type::value_type wide_char_t;
|
|
diff --git a/src/nanodbc.h b/src/nanodbc.h
|
|
index f4e7b3d..bb7bacd 100644
|
|
--- a/src/nanodbc.h
|
|
+++ b/src/nanodbc.h
|
|
@@ -127,13 +127,13 @@ namespace nanodbc
|
|
|
|
//! @}
|
|
|
|
-// You must explicitly request Unicode support by defining NANODBC_USE_UNICODE at compile time.
|
|
+#define NANODBC_USE_UNICODE 1
|
|
#ifndef DOXYGEN
|
|
#ifdef NANODBC_USE_UNICODE
|
|
#ifdef NANODBC_USE_IODBC_WIDE_STRINGS
|
|
typedef std::u32string string_type;
|
|
#else
|
|
- typedef std::u16string string_type;
|
|
+ typedef std::wstring string_type;
|
|
#endif
|
|
#else
|
|
typedef std::string string_type;
|