From b0543306867c3044f4446606c1be1d5b41edb222 Mon Sep 17 00:00:00 2001 From: huangqinjin Date: Tue, 29 Oct 2024 12:53:19 +0800 Subject: [PATCH] odbc: Fix build when UNICODE is defined When `UNICODE` is defined, SQL* functions are mapped to -W functions which require `wchar_t` input. Define `SQL_NOUNICODEMAP` to disable the mapping. --- src/ls_odbc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/ls_odbc.c b/src/ls_odbc.c index 8e38d1a..c637a06 100644 --- a/src/ls_odbc.c +++ b/src/ls_odbc.c @@ -11,6 +11,7 @@ #include #include +#define SQL_NOUNICODEMAP #if defined(_WIN32) #include #include