mirror of
https://github.com/mcneel/opennurbs.git
synced 2026-03-21 18:10:55 +08:00
Cherry-pick 375346e
This commit is contained in:
@@ -148,7 +148,7 @@ int ON_wString::ScanBufferVargs(
|
||||
va_list args
|
||||
)
|
||||
{
|
||||
#if defined(ON_COMPILER_CLANG) || defined(ON_RUNTIME_LINUX)
|
||||
#if defined(ON_COMPILER_CLANG) || defined(ON_COMPILER_GNU)
|
||||
#if defined(ON_RUNTIME_ANDROID) || defined(ON_RUNTIME_LINUX)
|
||||
if (nullptr == buffer || nullptr == format)
|
||||
return -1;
|
||||
@@ -397,7 +397,7 @@ const char* ON_String::ToNumber(
|
||||
local_buffer[local_buffer_count++] = 0;
|
||||
|
||||
double x = value_on_failure;
|
||||
#if defined(ON_COMPILER_CLANG) || defined(ON_RUNTIME_LINUX)
|
||||
#if defined(ON_COMPILER_CLANG) || defined(ON_COMPILER_GNU)
|
||||
#if defined(ON_RUNTIME_ANDROID) || defined(ON_RUNTIME_LINUX)
|
||||
if (1 == sscanf(local_buffer, "%lg", &x))
|
||||
{
|
||||
@@ -639,7 +639,7 @@ const wchar_t* ON_wString::ToNumber(
|
||||
local_buffer[local_buffer_count++] = 0;
|
||||
|
||||
double x = value_on_failure;
|
||||
#if defined(ON_COMPILER_CLANG) || defined(ON_RUNTIME_LINUX)
|
||||
#if defined(ON_COMPILER_CLANG) || defined(ON_COMPILER_GNU)
|
||||
#if defined(ON_RUNTIME_ANDROID) || defined(ON_RUNTIME_LINUX)
|
||||
if (1 == sscanf(local_buffer, "%lg", &x))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user