comparison src/cdrom/linux/SDL_syscdrom.c @ 1402:d910939febfa

Use consistent identifiers for the various platforms we support. Make sure every source file includes SDL_config.h, so the proper system headers are chosen.
author Sam Lantinga <slouken@libsdl.org>
date Tue, 21 Feb 2006 08:46:50 +0000
parents c0a74f199ecf
children 92947e3a18db
comparison
equal deleted inserted replaced
1401:1819fd069e89 1402:d910939febfa
17 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 17 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
18 18
19 Sam Lantinga 19 Sam Lantinga
20 slouken@libsdl.org 20 slouken@libsdl.org
21 */ 21 */
22 #include "SDL_config.h"
22 23
23 /* Functions for system-level CD-ROM audio control */ 24 /* Functions for system-level CD-ROM audio control */
24 25
25 #include <string.h> /* For strerror() */ 26 #include <string.h> /* For strerror() */
26 #include <sys/types.h> 27 #include <sys/types.h>
27 #include <sys/stat.h> 28 #include <sys/stat.h>
28 #include <sys/ioctl.h> 29 #include <sys/ioctl.h>
29 #include <fcntl.h> 30 #include <fcntl.h>
30 #include <errno.h> 31 #include <errno.h>
31 #include <unistd.h> 32 #include <unistd.h>
32 #ifdef __linux__ 33 #ifdef __LINUX__
33 #ifdef HAVE_LINUX_VERSION_H 34 #ifdef HAVE_LINUX_VERSION_H
34 /* linux 2.6.9 workaround */ 35 /* linux 2.6.9 workaround */
35 #include <linux/version.h> 36 #include <linux/version.h>
36 #if LINUX_VERSION_CODE == KERNEL_VERSION(2,6,9) 37 #if LINUX_VERSION_CODE == KERNEL_VERSION(2,6,9)
37 #include <asm/types.h> 38 #include <asm/types.h>