0
0
Fork 0
mirror of https://github.com/MarlinFirmware/Marlin.git synced 2025-06-24 16:00:58 +00:00

Rename fpos_t to avoid libc conflict

This commit is contained in:
Scott Lahteine 2016-02-10 20:49:25 -08:00
parent 159ff94afd
commit b83e472bd3
2 changed files with 8 additions and 8 deletions

View file

@ -291,7 +291,7 @@ bool SdBaseFile::getFilename(char* name) {
return true;
}
//------------------------------------------------------------------------------
void SdBaseFile::getpos(fpos_t* pos) {
void SdBaseFile::getpos(filepos_t* pos) {
pos->position = curPosition_;
pos->cluster = curCluster_;
}
@ -923,7 +923,7 @@ fail:
* \return The byte if no error and not at eof else -1;
*/
int SdBaseFile::peek() {
fpos_t pos;
filepos_t pos;
getpos(&pos);
int c = read();
if (c >= 0) setpos(&pos);
@ -1479,7 +1479,7 @@ fail:
return false;
}
//------------------------------------------------------------------------------
void SdBaseFile::setpos(fpos_t* pos) {
void SdBaseFile::setpos(filepos_t* pos) {
curPosition_ = pos->position;
curCluster_ = pos->cluster;
}