changeset 1796:00ea6cf49a4e

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.
author Sam Lantinga <slouken@libsdl.org>
date Tue, 09 May 2006 15:14:48 +0000
parents 398ac0f88e4d
children 783b9409baa0
files include/SDL_config_macos.h
diffstat 1 files changed, 9 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/include/SDL_config_macos.h	Tue May 09 15:09:47 2006 +0000
+++ b/include/SDL_config_macos.h	Tue May 09 15:14:48 2006 +0000
@@ -73,10 +73,18 @@
 #define SDL_AUDIO_DRIVER_DUMMY	1
 
 /* Enable various cdrom drivers */
-#define SDL_CDROM_MACOS	1
+#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
 
 /* Enable various shared object loading systems */
 #define SDL_LOADSO_MACOS	1