| Summary: | More flexible SDL_config_macosx.h | ||
|---|---|---|---|
| Product: | SDL | Reporter: | Anders F Bj <afb> |
| Component: | build | Assignee: | Ryan C. Gordon <icculus> |
| Status: | RESOLVED FIXED | QA Contact: | Sam Lantinga <slouken> |
| Severity: | normal | ||
| Priority: | P2 | ||
| Version: | HG 1.2 | ||
| Hardware: | PowerPC | ||
| OS: | Mac OS X (All) | ||
| Bug Depends on: | |||
| Bug Blocks: | 53 | ||
| Attachments: | SDLsvn-config-macosx.patch | ||
|
Description
Anders F Bj
2006-05-09 15:48:29 UTC
Created attachment 118 [details]
SDLsvn-config-macosx.patch
The config file is supposed to define what is actually built for the current configuration. Maybe we need SDL_config_carbon.h? It was used conditionally in SDL_config_macos.h, so I continued with that. i.e. (from include/SDL_config_macos.h) /* Enable various cdrom drivers */ #if TARGET_API_MAC_CARBON #define SDL_CDROM_DUMMY 1 #else #define SDL_CDROM_MACOS 1 #endif /* Enable various input drivers */ #if TARGET_API_MAC_CARBON #define SDL_JOYSTICK_DUMMY 1 #else #define SDL_JOYSTICK_MACOS 1 #endif Splitting the Mac OS X SDL_config_macosx.h into "SDL_config_carbon.h" and "SDL_config_cocoa.h" could be done, not sure how popular it would be though ? This should be fixed in subversion now... I just added a special #if TARGET_API_MAC_CARBON section, like I did for MacOS Classic. |