aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordrh <>2023-05-12 13:20:57 +0000
committerdrh <>2023-05-12 13:20:57 +0000
commit69bc8c70f9a991cc4bd603ed17c96a6681f18e62 (patch)
tree87aaa1a52c3410ec2220d2b50c0c0c2929455f4a /src
parent26a3e5664926abf2bb5cd9587256655dec2730fc (diff)
downloadsqlite-69bc8c70f9a991cc4bd603ed17c96a6681f18e62.tar.gz
sqlite-69bc8c70f9a991cc4bd603ed17c96a6681f18e62.zip
Ensure the _O_U16TEXT is defined for Windows builds of the CLI.
[forum:/forumpost/c80aa942dc6bf2|Forum post c80aa942dc6bf2]. FossilOrigin-Name: 504effa89b48c0dc6cd12b3eaf6017be3f32017c601af17759a3cc185346d868
Diffstat (limited to 'src')
-rw-r--r--src/shell.c.in4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/shell.c.in b/src/shell.c.in
index 2c5c59f23..b29e40291 100644
--- a/src/shell.c.in
+++ b/src/shell.c.in
@@ -605,6 +605,10 @@ static struct ConsoleState {
DWORD consoleMode; /* Console mode upon shell start */
} conState = { 0, 0, 0, 0, INVALID_HANDLE_VALUE, 0 };
+#ifndef _O_U16TEXT /* For build environments lacking this constant: */
+# define _O_U16TEXT 0x20000
+#endif
+
/*
** Prepare console, (if known to be a WIN32 console), for UTF-8
** input (from either typing or suitable paste operations) and for