$(foreach dir,$(DEP_DIRS),-F$(GNUSTEP_BUILD_DIR)/$(dir))
endif
+ifeq ($(findstring _64, $(GNUSTEP_TARGET_CPU)), _64)
+SYSTEM_LIB_DIR += -L/usr/local/lib64 -L/usr/lib64
+else
SYSTEM_LIB_DIR += -L/usr/local/lib -L/usr/lib
+endif
# dependencies
if (self->existingPathes && (path != nil)) {
int i;
- i = (int)NSMapGet(self->existingPathes, path);
+ i = (int)(long)NSMapGet(self->existingPathes, path);
if (i == 0) {
doesExist = [fm fileExistsAtPath:path];
- NSMapInsert(self->existingPathes, path, (void*)(doesExist ? 1 : 0xFF));
+ NSMapInsert(self->existingPathes, path, (void*)(doesExist ? 1L : 0xFFL));
}
else
doesExist = i == 1 ? YES : NO;
char buf[24];
self->qpJoin = @"&";
- sprintf(buf, "%03x%08x%08x", ++contextCount, (int)time(NULL), (int)self);
+ sprintf(buf, "%03x%08x%08x", ++contextCount, (int)time(NULL),
+ (unsigned int)(unsigned long)self);
self->ctxId = [[NSString alloc] initWithCString:buf];
/* per default close tags in XML style */
return [NSString stringWithFormat:
@"<0x%p[%@]: %@ app=%@ sn=%@ eid=%@ rqeid=%@>",
- (unsigned)self, NSStringFromClass([self class]),
+ self, NSStringFromClass([self class]),
[self contextID],
[app name],
sid != nil ? sid : (NSString *)@"none",
if (self->existingPathes && (path != nil)) {
int i;
- i = (int)NSMapGet(self->existingPathes, path);
+ i = (int)(long)NSMapGet(self->existingPathes, path);
if (i == 0) {
doesExist = [fm fileExistsAtPath:path];
- NSMapInsert(self->existingPathes, path, (void*)(doesExist ? 1 : 0xFF));
+ NSMapInsert(self->existingPathes, path,
+ (void *)(doesExist ? 1L : 0xFFL));
}
else
doesExist = i == 1 ? YES : NO;