summary refs log tree commit diff stats
path: root/lib/wrappers
diff options
context:
space:
mode:
authorflywind <xzsflywind@gmail.com>2021-03-07 19:08:41 +0800
committerGitHub <noreply@github.com>2021-03-07 12:08:41 +0100
commit0e3ea1655441036aa13d95ca1c47d9d27e0dff62 (patch)
treefd565b78e6da93d5965ce9ed89276e5843a70607 /lib/wrappers
parentb8c04bdb929f72ed8214122b255e88db9e713774 (diff)
downloadNim-0e3ea1655441036aa13d95ca1c47d9d27e0dff62.tar.gz
use lowercase --define switches (#17283)
Diffstat (limited to 'lib/wrappers')
-rw-r--r--lib/wrappers/mysql.nim4
-rw-r--r--lib/wrappers/openssl.nim2
2 files changed, 3 insertions, 3 deletions
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