From 4172b60d60dcc1a510bb62c7936b949071abc3c4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matthias=20K=C3=B6fferlein?= Date: Sat, 13 Jul 2019 23:38:26 +0200 Subject: [PATCH] Fixed a build issue on Windows. --- src/db/db/dbNetlistCompare.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/db/db/dbNetlistCompare.cc b/src/db/db/dbNetlistCompare.cc index f1e1921f4..7069b63e4 100644 --- a/src/db/db/dbNetlistCompare.cc +++ b/src/db/db/dbNetlistCompare.cc @@ -52,7 +52,11 @@ static int name_compare (const std::string &n1, const std::string &n2) { // TODO: unicode support? #if defined(COMPARE_CASE_INSENSITIVE) +#if defined(_WIN32) + return _stricmp (n1.c_str (), n2.c_str ()); +#else return strcasecmp (n1.c_str (), n2.c_str ()); +#endif #else return strcmp (n1.c_str (), n2.c_str ()); #endif