diff options
| author | Martin Ridgers <[email protected]> | 2021-10-25 09:41:17 +0200 |
|---|---|---|
| committer | Martin Ridgers <[email protected]> | 2021-10-25 09:48:30 +0200 |
| commit | a221e6555a4079ddd0fe882710bf51c4f8d05fbc (patch) | |
| tree | 303dada14afc62741d25ecaa86ca387797e93839 | |
| parent | Cross-platform string comparison helper plus tests (diff) | |
| download | zen-a221e6555a4079ddd0fe882710bf51c4f8d05fbc.tar.xz zen-a221e6555a4079ddd0fe882710bf51c4f8d05fbc.zip | |
Use StrCaseCompare() instead of Windows-only _stricmp()
| -rw-r--r-- | zen/zen.cpp | 2 | ||||
| -rw-r--r-- | zenhttp/include/zenhttp/httpserver.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/zen/zen.cpp b/zen/zen.cpp index 3c33ff5e0..1fe23d32b 100644 --- a/zen/zen.cpp +++ b/zen/zen.cpp @@ -264,7 +264,7 @@ main(int argc, char** argv) for (const CommandInfo& CmdInfo : Commands) { - if (_stricmp(SubCommand.c_str(), CmdInfo.CmdName) == 0) + if (StrCaseCompare(SubCommand.c_str(), CmdInfo.CmdName) == 0) { cxxopts::Options* VerbOptions = CmdInfo.Cmd->Options(); diff --git a/zenhttp/include/zenhttp/httpserver.h b/zenhttp/include/zenhttp/httpserver.h index 93ba452c7..614cdc2ac 100644 --- a/zenhttp/include/zenhttp/httpserver.h +++ b/zenhttp/include/zenhttp/httpserver.h @@ -46,7 +46,7 @@ public: if (Key.size() == ParamName.size()) { - if (0 == _strnicmp(Key.data(), ParamName.data(), Key.size())) + if (0 == StrCaseCompare(Key.data(), ParamName.data(), Key.size())) { return Kv.second; } |