message: Replaced Gestalt with NSProcessInfo for getting operating system version (mac)
diff: @@ -448,25 +448,7 @@ plcrash_error_t plcrash_log_writer_init (plcrash_log_writer_t *writer,
  #elif TARGET_OS_MAC
  /* Mac OS X */
  {
  - SInt32 major, minor, bugfix;
  -
  - /* Fetch the major, minor, and bugfix versions.
  - * Fetching the OS version should not fail. */
  - if (Gestalt(gestaltSystemVersionMajor, &major) != noErr) {
  - PLCF_DEBUG("Could not retrieve system major version with Gestalt");
  - return PLCRASH_EINTERNAL;
  - }
  - if (Gestalt(gestaltSystemVersionMinor, &minor) != noErr) {
  - PLCF_DEBUG("Could not retrieve system minor version with Gestalt");
  - return PLCRASH_EINTERNAL;
  - }
  - if (Gestalt(gestaltSystemVersionBugFix, &bugfix) != noErr) {
  - PLCF_DEBUG("Could not retrieve system bugfix version with Gestalt");
  - return PLCRASH_EINTERNAL;
  - }
  -
  - /* Compose the string */
  - asprintf(&writer->system_info.version, "%" PRId32 ".%" PRId32 ".%" PRId32, (int32_t)major, (int32_t)minor, (int32_t)bugfix);
  + writer->system_info.version = strdup([[[NSProcessInfo processInfo] operatingSystemVersionString] UTF8String]);
  }
  #else
  #error Unsupported Platform
  