# HG changeset patch # User james # Date 1095795867 0 # Node ID d5131a81147ead3ae59ebe8197520191d70357b7 # Parent fd11ab9931731d56edd4e395d62ca8627d7bd882 [xemacs-hg @ 2004-09-21 19:44:17 by james] Fix sound.c compilation problem reported by Adrian. diff -r fd11ab993173 -r d5131a81147e src/ChangeLog --- a/src/ChangeLog Tue Sep 21 19:11:47 2004 +0000 +++ b/src/ChangeLog Tue Sep 21 19:44:27 2004 +0000 @@ -1,3 +1,8 @@ +2004-09-21 Jerry James + + * sound.c (Fwait_for_sounds): Factor out test for unused parameter. + (Fconnected_to_nas_p): Ditto. + 2004-05-14 Darryl Okahata * window.c (current-pixel-row, current-pixel-column). Added a diff -r fd11ab993173 -r d5131a81147e src/sound.c --- a/src/sound.c Tue Sep 21 19:11:47 2004 +0000 +++ b/src/sound.c Tue Sep 21 19:44:27 2004 +0000 @@ -490,16 +490,16 @@ return Qnil; } +#ifdef HAVE_NAS_SOUND +#define USED_IF_HAVE_NAS(decl) decl +#else +#define USED_IF_HAVE_NAS(decl) UNUSED (decl) +#endif + DEFUN ("wait-for-sounds", Fwait_for_sounds, 0, 1, 0, /* Wait for all sounds to finish playing on DEVICE. */ - ( -#ifdef HAVE_NAS_SOUND - device -#else - UNUSED (device) -#endif - )) + (USED_IF_HAVE_NAS (device))) { #ifdef HAVE_NAS_SOUND struct device *d = decode_device (device); @@ -515,13 +515,7 @@ DEFUN ("connected-to-nas-p", Fconnected_to_nas_p, 0, 1, 0, /* Return t if connected to NAS server for sounds on DEVICE. */ - ( -#ifdef HAVE_NAS_SOUND - device -#else - UNUSED (device) -#endif - )) + (USED_IF_HAVE_NAS (device))) { #ifdef HAVE_NAS_SOUND return DEVICE_CONNECTED_TO_NAS_P (decode_device (device)) ? Qt : Qnil;