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
This commit is contained in:
Alexander Malmberg 2004-07-12 22:28:27 +00:00
parent dea39ef36a
commit 2e9a6a5c61
2 changed files with 7 additions and 2 deletions

View file

@ -1,3 +1,8 @@
2004-07-13 00:23 Alexander Malmberg <alexander@malmberg.org>
* Source/NSSound.m: Only declare the_server if HAVE_AUDIOFILE_H
is defined.
2004-07-13 00:21 Alexander Malmberg <alexander@malmberg.org>
* Headers/AppKit/NSMovieView.h: Make loopMode ivar an unsigned int.

View file

@ -83,8 +83,6 @@ static NSDictionary *nsmapping = nil;
@end
static id<GSSoundSvr> the_server = nil;
@interface NSSound (PrivateMethods)
+ (id<GSSoundSvr>) gsnd;
@ -104,6 +102,8 @@ static id<GSSoundSvr> the_server = nil;
@implementation NSSound (PrivateMethods)
#ifdef HAVE_AUDIOFILE_H
static id<GSSoundSvr> the_server = nil;
+ (id<GSSoundSvr>) gsnd
{
if (the_server == nil)