mirror of
https://github.com/mcneel/opennurbs.git
synced 2026-04-05 12:16:29 +08:00
Update source to v6.8.18240.20051
Previous source was actually for 6.1...
This commit is contained in:
@@ -43,6 +43,10 @@
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#if defined(ON_RUNTIME_APPLE)
|
||||
#include "unistd.h" //for unlink
|
||||
#endif
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
void ON_String::SplitPath(
|
||||
@@ -1700,7 +1704,7 @@ const ON_wString ON_FileSystemPath::PlatformPath( ON_FileSystemPath::PathId path
|
||||
#if defined(ON_RUNTIME_WIN)
|
||||
KNOWNFOLDERID platform_path_id;
|
||||
#define ON_INTERNAL_SET_LOCAL_DIRECTORY_ID(win_fid,apple_fid) platform_path_id = win_fid
|
||||
#elif defined(ON_RUNTIME_APPLE)
|
||||
#elif defined(ON_RUNTIME_APPLE_OBJECTIVE_C_AVAILABLE)
|
||||
NSSearchPathDirectory platform_path_id;
|
||||
#define ON_INTERNAL_SET_LOCAL_DIRECTORY_ID(win_fid,apple_fid) platform_path_id = apple_fid
|
||||
#endif
|
||||
@@ -1743,7 +1747,7 @@ const ON_wString ON_FileSystemPath::PlatformPath( ON_FileSystemPath::PathId path
|
||||
CoTaskMemFree(windows_path);
|
||||
}
|
||||
|
||||
#elif defined(ON_RUNTIME_APPLE)
|
||||
#elif defined(ON_RUNTIME_APPLE_OBJECTIVE_C_AVAILABLE)
|
||||
|
||||
NSArray *apple_paths = NSSearchPathForDirectoriesInDomains(platform_path_id, NSUserDomainMask, YES);
|
||||
if ([apple_paths count] > 0)
|
||||
|
||||
Reference in New Issue
Block a user