我正在尝试为 64 位架构构建 Android L。
我的代码如下:
#if (HAS_LARGE_FILE_SUPPORT)
#define _FILE_OFFSET_BITS 64 //Defined in header file
/*Some File operations*/
#if HAS_LARGE_FILE_SUPPORT
return fseeko(iFile, offset, seekmode);
#else
return fseek(iFile, offset, seekmode);
/*Some File operations*/
#if HAS_LARGE_FILE_SUPPORT
return ftello(iFile, offset, seekmode);
#else
return ftell(iFile, offset, seekmode);
我得到以下ftello
错误fseeko
:
error: call to 'ftello' declared with attribute error: not available with _FILE_OFFSET_BITS=64
error: call to 'fseeko' declared with attribute error: not available with _FILE_OFFSET_BITS=64
我检查了fseeko
and ftello
,在手册页上提到_FILE_OFFSET_BITS
用值 64 定义将off_t
变成 64 位类型。我仍然看到这个错误。我检查了这个错误,但找不到任何令人满意的答案。
如果有人可以帮助我,那将非常有帮助。