mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-23 09:04:13 +00:00
(NSCharacterSet_PATH): New macro, replacing BITMAP_PATH. Value
partially determined by GNUSTEP_INSTALL_PREFIX. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1704 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
4701ec747e
commit
fecb3e568c
1 changed files with 3 additions and 4 deletions
|
@ -27,9 +27,8 @@
|
|||
#include <Foundation/NSData.h>
|
||||
#include <Foundation/NSLock.h>
|
||||
|
||||
/* FIXME: Where should bitmaps go? Maybe should be defined with configure */
|
||||
#ifndef BITMAP_PATH
|
||||
#define BITMAP_PATH @"/usr/local/share/objects"
|
||||
#ifndef NSCharacterSet_PATH
|
||||
#define NSCharacterSet_PATH OBJC_STRINGIFY(GNUSTEP_INSTALL_PREFIX) @"/share"
|
||||
#endif
|
||||
|
||||
/* A simple array for caching standard bitmap sets */
|
||||
|
@ -75,7 +74,7 @@ static NSLock* cache_lock = nil;
|
|||
NS_DURING
|
||||
path = [NSBundle pathForResource:setname
|
||||
ofType:@"dat"
|
||||
inDirectory:BITMAP_PATH
|
||||
inDirectory:NSCharacterSet_PATH
|
||||
withVersion:0];
|
||||
/* This is for testing purposes */
|
||||
if (path == nil || [path length] == 0)
|
||||
|
|
Loading…
Reference in a new issue