> OK so then the following is sufficient for our needs: > > #elif defined (__APPLE__) > /* By default, macOS volumes are case-insensitive, iOS > volumes are case-sensitive. */ > #if TARGET_OS_IOS > file_names_case_sensitive_cache = 1; > #else > file_names_case_sensitive_cache = 0; > #endif > #else /* Neither Windows nor Apple. */ > file_names_case_sensitive_cache = 1; > #endif
Actually you can simplify even further: #elif defined (__APPLE__) && !defined(TARGET_OS_IOS) /* By default, macOS volumes are case-insensitive, iOS volumes are case-sensitive, so fallback below. */ file_names_case_sensitive_cache = 0; #else /* Neither Windows nor macOS. */ file_names_case_sensitive_cache = 1; #endif Arno