Differences From Artifact [b33fc4fe1c]:
- File src/OFSystemInfo.m — part of check-in [f0528dda03] at 2021-05-13 20:04:29 on branch trunk — OFSystemInfo: Exclude \0 returned by confstr() (user: js, size: 17133) [annotate] [blame] [check-ins using] [more...]
To Artifact [da4a435ab7]:
- File
src/OFSystemInfo.m
— part of check-in
[f372f73c49]
at
2021-08-07 22:51:17
on branch trunk
— OFSystemInfo: Use if (@available(...))
This avoids referencing the deprecated symbols even though the
replacements are available, which resulted in App Store rejection. (user: js, size: 16959) [annotate] [blame] [check-ins using] [more...]
︙ | ︙ | |||
350 351 352 353 354 355 356 | + (OFString *)userDataPath { # if defined(OF_MACOS) || defined(OF_IOS) char pathC[PATH_MAX]; OFMutableString *path; # ifdef HAVE_SYSDIR_START_SEARCH_PATH_ENUMERATION | | < | 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 | + (OFString *)userDataPath { # if defined(OF_MACOS) || defined(OF_IOS) char pathC[PATH_MAX]; OFMutableString *path; # ifdef HAVE_SYSDIR_START_SEARCH_PATH_ENUMERATION if (@available(macOS 10.12, iOS 10, *)) { sysdir_search_path_enumeration_state state; state = sysdir_start_search_path_enumeration( SYSDIR_DIRECTORY_APPLICATION_SUPPORT, SYSDIR_DOMAIN_MASK_USER); if (sysdir_get_next_search_path_enumeration(state, pathC) == 0) @throw [OFNotImplementedException |
︙ | ︙ | |||
443 444 445 446 447 448 449 | + (OFString *)userConfigPath { # if defined(OF_MACOS) || defined(OF_IOS) char pathC[PATH_MAX]; OFMutableString *path; # ifdef HAVE_SYSDIR_START_SEARCH_PATH_ENUMERATION | | < | 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 | + (OFString *)userConfigPath { # if defined(OF_MACOS) || defined(OF_IOS) char pathC[PATH_MAX]; OFMutableString *path; # ifdef HAVE_SYSDIR_START_SEARCH_PATH_ENUMERATION if (@available(macOS 10.12, iOS 10, *)) { sysdir_search_path_enumeration_state state; state = sysdir_start_search_path_enumeration( SYSDIR_DIRECTORY_LIBRARY, SYSDIR_DOMAIN_MASK_USER); if (sysdir_get_next_search_path_enumeration(state, pathC) == 0) @throw [OFNotImplementedException exceptionWithSelector: _cmd |
︙ | ︙ |