Mercurial > sdl-ios-xcode
comparison include/SDL_cdrom.h @ 1046:f09d5edfc7a3
Added some parentheses for a little more macro safety. Recommended by Petri
Kero, here: http://www.devolution.com/pipermail/sdl/2005-March/067630.html
author | Ryan C. Gordon <icculus@icculus.org> |
---|---|
date | Sun, 17 Apr 2005 10:16:30 +0000 |
parents | 04a403e4ccf5 |
children | c9b51268668f |
comparison
equal
deleted
inserted
replaced
1045:63b8e93a3a52 | 1046:f09d5edfc7a3 |
---|---|
58 CD_PAUSED, | 58 CD_PAUSED, |
59 CD_ERROR = -1 | 59 CD_ERROR = -1 |
60 } CDstatus; | 60 } CDstatus; |
61 | 61 |
62 /* Given a status, returns true if there's a disk in the drive */ | 62 /* Given a status, returns true if there's a disk in the drive */ |
63 #define CD_INDRIVE(status) ((int)status > 0) | 63 #define CD_INDRIVE(status) ((int)(status) > 0) |
64 | 64 |
65 typedef struct SDL_CDtrack { | 65 typedef struct SDL_CDtrack { |
66 Uint8 id; /* Track number */ | 66 Uint8 id; /* Track number */ |
67 Uint8 type; /* Data or audio track */ | 67 Uint8 type; /* Data or audio track */ |
68 Uint16 unused; | 68 Uint16 unused; |