cdrom.h: use static inline instead of macros