Removing dependecy on CRT.

This commit is contained in:
Branimir Karadžić
2017-01-19 00:21:35 -08:00
parent 223d9f7e00
commit b31f3507f2
6 changed files with 228 additions and 88 deletions

View File

@@ -246,11 +246,11 @@ namespace bx
const char* arg = findOption(_short, _long, 1);
if (NULL != arg)
{
if ('0' == *arg || (0 == stricmp(arg, "false") ) )
if ('0' == *arg || (0 == strincmp(arg, "false") ) )
{
_value = false;
}
else if ('0' != *arg || (0 == stricmp(arg, "true") ) )
else if ('0' != *arg || (0 == strincmp(arg, "true") ) )
{
_value = true;
}
@@ -294,7 +294,7 @@ namespace bx
}
else if (NULL != _long
&& '-' == *arg
&& 0 == stricmp(arg+1, _long) )
&& 0 == strincmp(arg+1, _long) )
{
if (0 == _skip)
{