Skip GSXML test if GS_USE_LIBXML is not defined. Saves the test from crashing with a linker error

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32342 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
David Chisnall 2011-02-24 12:09:11 +00:00
parent bb7e267194
commit 8ee8fdfbd4

View file

@ -1,5 +1,5 @@
#if defined(GNUSTEP_BASE_LIBRARY)
#import <Foundation/Foundation.h>
#if defined(GNUSTEP_BASE_LIBRARY) && (GS_USE_LIBXML == 1)
#import <GNUstepBase/GSXML.h>
#import "Testing.h"
#import "ObjectTesting.h"
@ -151,6 +151,7 @@ int main()
#else
int main(int argc,char **argv)
{
unsupported("GSXML support unavailable");
return 0;
}
#endif