Implicit declaration of function 'NSFileTypeForHFSTypeCode' is invalid in C99

来源:互联网 发布:淘宝找回密码系统繁忙 编辑:程序博客网 时间:2024/06/08 11:06

1.  问题 



FMDatabaseAdditions.m:137:19: Implicit declaration of function 'NSFileTypeForHFSTypeCode' is invalid in C99






2. 办法


加上  红色的code....


#if TARGET_OS_MAC && !TARGET_OS_IPHONE        - (NSString*)applicationIDString {            NSString *s = NSFileTypeForHFSTypeCode([self applicationID]);            assert([s length] == 6);            s = [s substringWithRange:NSMakeRange(1, 4)];            return s;        }        - (void)setApplicationIDString:(NSString*)s {            if ([s length] != 4) {                NSLog(@"setApplicationIDString: string passed is not exactly 4 chars long. (was %ld)", [s length]);            }            [self setApplicationID:NSHFSTypeCodeFromFileType([NSString stringWithFormat:@"'%@'", s])];        }#endif

0 0
原创粉丝点击