diff src/sound.c @ 2294:d5131a81147e

[xemacs-hg @ 2004-09-21 19:44:17 by james] Fix sound.c compilation problem reported by Adrian.
author james
date Tue, 21 Sep 2004 19:44:27 +0000
parents 04bc9d2f42c7
children ecf1ebac70d8
line wrap: on
line diff
--- 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;