We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 2905 - SDL_cocoavideo.m uses deprecated gestaltSystemVersion
Summary: SDL_cocoavideo.m uses deprecated gestaltSystemVersion
Status: RESOLVED DUPLICATE of bug 2631
Alias: None
Product: SDL
Classification: Unclassified
Component: video (show other bugs)
Version: 2.0.3
Hardware: x86 Mac OS X (All)
: P2 normal
Assignee: Sam Lantinga
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-03-11 18:04 UTC by Carles Cufi
Modified: 2015-03-12 02:49 UTC (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Carles Cufi 2015-03-11 18:04:11 UTC
The SDL_cocoavideo.m uses an API that is deprecated in OS X 10.10:

 79     /* Find out what version of Mac OS X we're running */
 80     Gestalt(gestaltSystemVersion, &data->osversion);

The following output can be seen in Console when running an app with SDL 2.0.3 compiled in:

11/03/15 18:12:35,306 Match3[485]: WARNING: The Gestalt selector gestaltSystemVersion is returning 10.9.2 instead of 10.10.2. Use NSProcessInfo's operatingSystemVersion property to get correct system version number.
Call location:
11/03/15 18:12:35,307 Match3[485]: 0   CarbonCore                          0x00007fff8bc74d9b ___Gestalt_SystemVersion_block_invoke + 113
11/03/15 18:12:35,307 Match3[485]: 1   libdispatch.dylib                   0x00007fff8e538c13 _dispatch_client_callout + 8
11/03/15 18:12:35,307 Match3[485]: 2   libdispatch.dylib                   0x00007fff8e538b26 dispatch_once_f + 117
11/03/15 18:12:35,307 Match3[485]: 3   CarbonCore                          0x00007fff8bc1d3ca _Gestalt_SystemVersion + 987
11/03/15 18:12:35,307 Match3[485]: 4   CarbonCore                          0x00007fff8bc1cfb7 Gestalt + 144
11/03/15 18:12:35,307 Match3[485]: 5   SDL2                                0x0000000100eb8a5a SDL2 + 232026
11/03/15 18:12:35,307 Match3[485]: 6   SDL2                                0x0000000100eea912 SDL2 + 436498
Comment 1 Alex Szpakowski 2015-03-12 02:49:26 UTC
This is already fixed for SDL 2.0.4.

*** This bug has been marked as a duplicate of bug 2631 ***