sol11x86@comcast.net wrote:
+#ifndef __sun__ IOCTL_TO_STR(SOUND_MIXER_PHONEIN); IOCTL_TO_STR(SOUND_MIXER_PHONEOUT); +#endif IOCTL_TO_STR(SOUND_MIXER_VIDEO); IOCTL_TO_STR(SOUND_MIXER_RADIO); +#ifndef __sun__ IOCTL_TO_STR(SOUND_MIXER_MONITOR); +#endif
There is no need in introducing a platform specific code:
#ifdef SOUND_MIXER_PHONEIN IOCTL_TO_STR(SOUND_MIXER_PHONEIN); #endif #ifdef SOUND_MIXER_PHONEOUT IOCTL_TO_STR(SOUND_MIXER_PHONEOUT); #endif IOCTL_TO_STR(SOUND_MIXER_VIDEO); IOCTL_TO_STR(SOUND_MIXER_RADIO); #ifdef SOUND_MIXER_MONITOR IOCTL_TO_STR(SOUND_MIXER_MONITOR); #endif
should work just fine.