Fix compil issue on Linux

This commit is contained in:
jean-pierre charras 2017-04-08 14:26:32 +02:00
parent ba517db96c
commit aad80c9bf4
1 changed files with 2 additions and 2 deletions

View File

@ -272,7 +272,7 @@ int ReadInt( char*& text, bool aSkipSeparator = true )
// For strtol, a string starting by 0X or 0x is a valid number in hexadecimal or octal.
// However, 'X' is a separator in Gerber strings with numbers.
// We need to detect that
if( strnicmp( text, "0X", 2 ) == 0 )
if( strncasecmp( text, "0X", 2 ) == 0 )
{
text++;
ret = 0;
@ -306,7 +306,7 @@ double ReadDouble( char*& text, bool aSkipSeparator = true )
// For strtod, a string starting by 0X or 0x is a valid number in hexadecimal or octal.
// However, 'X' is a separator in Gerber strings with numbers.
// We need to detect that
if( strnicmp( text, "0X", 2 ) == 0 )
if( strncasecmp( text, "0X", 2 ) == 0 )
{
text++;
ret = 0.0;