mirror of https://github.com/KLayout/klayout.git
Fixed a build issue on Windows.
This commit is contained in:
parent
5f27341995
commit
4172b60d60
|
|
@ -52,7 +52,11 @@ static int name_compare (const std::string &n1, const std::string &n2)
|
||||||
{
|
{
|
||||||
// TODO: unicode support?
|
// TODO: unicode support?
|
||||||
#if defined(COMPARE_CASE_INSENSITIVE)
|
#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 ());
|
return strcasecmp (n1.c_str (), n2.c_str ());
|
||||||
|
#endif
|
||||||
#else
|
#else
|
||||||
return strcmp (n1.c_str (), n2.c_str ());
|
return strcmp (n1.c_str (), n2.c_str ());
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue