Add preliminary ON_RUNTIME_LINUX support.

* [make] add missing files to get compile going
  - opennurbs_glyph_outline.cpp
  - opennurbs_unicode_cpsb.cpp
  - commented out version of LINKFLAGS with -luuid
  - commented out entries for Clang usage
This commit is contained in:
Nathan Letwory
2018-10-02 07:28:55 +03:00
committed by Will Pearson
parent abdc015b3e
commit eac54460a5
10 changed files with 51 additions and 18 deletions

View File

@@ -35,7 +35,7 @@ static ON_CRT_locale_t ON_CRT_C_locale()
ON_C_locale = _create_locale(LC_ALL, "C");
#elif defined(ON_RUNTIME_APPLE)
ON_C_locale = _c_locale;
#elif defined(ON_RUNTIME_ANDROID)
#elif defined(ON_RUNTIME_ANDROID) || defined(ON_RUNTIME_LINUX)
ON_C_locale = 0;
#else
ON_C_locale = _create_locale(category, locale);
@@ -104,7 +104,7 @@ static ON_CRT_locale_t ON_CRT_create_locale_ALL( const char * locale )
}
}
return newlocale(LC_ALL_MASK, apple_name, ON_CRT_C_locale() );
#elif defined(ON_RUNTIME_ANDROID)
#elif defined(ON_RUNTIME_ANDROID) || defined(ON_RUNTIME_LINUX)
return 0;
#else
return _create_locale(category, locale);
@@ -1344,7 +1344,7 @@ public:
static bool Validate_sprintf_l()
{
#if defined(ON_COMPILER_CLANG)
#if defined(ON_RUNTIME_ANDROID)
#if defined(ON_RUNTIME_ANDROID) || defined(ON_RUNTIME_LINUX)
// Test formatted printing
char buffer[64] = { 0 };
// Testing C-runtime - do not using ON_String::FormatIntoBuffer
@@ -1369,7 +1369,7 @@ public:
static bool Validate_sprintf_s_l()
{
#if defined(ON_COMPILER_CLANG)
#if defined(ON_RUNTIME_ANDROID)
#if defined(ON_RUNTIME_ANDROID) || defined(ON_RUNTIME_LINUX)
// Test formatted printing
char buffer[64] = { 0 };
size_t buffer_capacity = (sizeof(buffer) / sizeof(buffer[0])) - 1;
@@ -1423,7 +1423,7 @@ public:
static bool Validate_sscanf_l()
{
#if defined(ON_COMPILER_CLANG)
#if defined(ON_RUNTIME_ANDROID)
#if defined(ON_RUNTIME_ANDROID) || defined(ON_RUNTIME_LINUX)
// Test formatted scanning
double a = ON_UNSET_VALUE;
// Testing C-runtime - do not using ON_String::Scan
@@ -1448,7 +1448,7 @@ public:
static bool Validate_sscanf_s_l()
{
#if defined(ON_COMPILER_CLANG)
#if defined(ON_RUNTIME_ANDROID)
#if defined(ON_RUNTIME_ANDROID) || defined(ON_RUNTIME_LINUX)
// Test formatted scanning
double a = ON_UNSET_VALUE;
// Testing C-runtime - do not using ON_String::Scan