#ifdef SUNOS
info.play.encoding = AUDIO_ENCODING_LINEAR;
#else
-# if BYTE_ORDER == BIG_ENDIAN
+ if (mem_bigendian)
info.play.encoding = AUDIO_ENCODING_SLINEAR_BE;
-# else
+ else
info.play.encoding = AUDIO_ENCODING_SLINEAR_LE;
-# endif
#endif
if (ioctl (audio_fd, AUDIO_SETINFO, &info) != 0)