Fixed bug #218
authorSam Lantinga
Tue, 09 May 2006 15:14:48 +0000
changeset 179600ea6cf49a4e
parent 1795 398ac0f88e4d
child 1797 783b9409baa0
Fixed bug #218

Currently there are two Classic-only drivers defined in "SDL_config_macos.h",
and the ones in "SDL_config_macosx.h" are Mach-O/framework-only (i.e. not CFM)

As a workaround, I disabled CDROM and JOYSTICK when building SDL for CFM
Carbon.
include/SDL_config_macos.h
     1.1 --- a/include/SDL_config_macos.h	Tue May 09 15:09:47 2006 +0000
     1.2 +++ b/include/SDL_config_macos.h	Tue May 09 15:14:48 2006 +0000
     1.3 @@ -73,10 +73,18 @@
     1.4  #define SDL_AUDIO_DRIVER_DUMMY	1
     1.5  
     1.6  /* Enable various cdrom drivers */
     1.7 -#define SDL_CDROM_MACOS	1
     1.8 +#if TARGET_API_MAC_CARBON
     1.9 +#define SDL_CDROM_DUMMY		1
    1.10 +#else
    1.11 +#define SDL_CDROM_MACOS		1
    1.12 +#endif
    1.13  
    1.14  /* Enable various input drivers */
    1.15 +#if TARGET_API_MAC_CARBON
    1.16 +#define SDL_JOYSTICK_DUMMY	1
    1.17 +#else
    1.18  #define SDL_JOYSTICK_MACOS	1
    1.19 +#endif
    1.20  
    1.21  /* Enable various shared object loading systems */
    1.22  #define SDL_LOADSO_MACOS	1