From 6644d14a433382c1b63e4cbb66e1d505636fd19c Mon Sep 17 00:00:00 2001 From: alexm Date: Mon, 12 Jul 2004 22:28:27 +0000 Subject: [PATCH] Only declare the_server if HAVE_AUDIOFILE_H is defined. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@19724 72102866-910b-0410-8b05-ffd578937521 --- ChangeLog | 5 +++++ Source/NSSound.m | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 0fe8bf9d1..5d2ca0fec 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2004-07-13 00:23 Alexander Malmberg + + * Source/NSSound.m: Only declare the_server if HAVE_AUDIOFILE_H + is defined. + 2004-07-13 00:21 Alexander Malmberg * Headers/AppKit/NSMovieView.h: Make loopMode ivar an unsigned int. diff --git a/Source/NSSound.m b/Source/NSSound.m index 78bf9aa6c..27a4f4695 100644 --- a/Source/NSSound.m +++ b/Source/NSSound.m @@ -83,8 +83,6 @@ static NSDictionary *nsmapping = nil; @end -static id the_server = nil; - @interface NSSound (PrivateMethods) + (id) gsnd; @@ -104,6 +102,8 @@ static id the_server = nil; @implementation NSSound (PrivateMethods) #ifdef HAVE_AUDIOFILE_H +static id the_server = nil; + + (id) gsnd { if (the_server == nil)