From 0e3ea1655441036aa13d95ca1c47d9d27e0dff62 Mon Sep 17 00:00:00 2001 From: flywind Date: Sun, 7 Mar 2021 19:08:41 +0800 Subject: use lowercase --define switches (#17283) --- lib/wrappers/mysql.nim | 4 ++-- lib/wrappers/openssl.nim | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'lib/wrappers') diff --git a/lib/wrappers/mysql.nim b/lib/wrappers/mysql.nim index 209f63c21..2fefe4a8b 100644 --- a/lib/wrappers/mysql.nim +++ b/lib/wrappers/mysql.nim @@ -11,14 +11,14 @@ when defined(nimHasStyleChecks): {.push styleChecks: off.} -when defined(Unix): +when defined(unix): when defined(macosx): const lib = "(libmysqlclient|libmariadbclient)(|.20|.19|.18|.17|.16|.15).dylib" else: const lib = "(libmysqlclient|libmariadbclient).so(|.20|.19|.18|.17|.16|.15)" -when defined(Windows): +when defined(windows): const lib = "(libmysql.dll|libmariadb.dll)" type diff --git a/lib/wrappers/openssl.nim b/lib/wrappers/openssl.nim index 3c9c92b0d..313ce7d19 100644 --- a/lib/wrappers/openssl.nim +++ b/lib/wrappers/openssl.nim @@ -25,7 +25,7 @@ when defined(nimHasStyleChecks): {.push styleChecks: off.} -const useWinVersion = defined(Windows) or defined(nimdoc) +const useWinVersion = defined(windows) or defined(nimdoc) # To force openSSL version use -d:sslVersion=1.0.0 # See: #10281, #10230 -- cgit 1.4.1-2-gfad0