Skip to content

Commit

Permalink
FAT-FreeRTOS#50: Fixing duplicate definition of st_atime, st_mtime, s…
Browse files Browse the repository at this point in the history
…t_ctime for linux.
  • Loading branch information
phelter committed Aug 8, 2023
1 parent cec9a7b commit d4d2c9b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions ff_stdio.c
Original file line number Diff line number Diff line change
Expand Up @@ -1137,9 +1137,9 @@ int ff_stat( const char * pcName,

#if ( ffconfigTIME_SUPPORT == 1 )
{
pxStatBuffer->st_atime = prvFileTime( &( xDirEntry.xAccessedTime ) );
pxStatBuffer->st_mtime = prvFileTime( &( xDirEntry.xModifiedTime ) );
pxStatBuffer->st_ctime = prvFileTime( &( xDirEntry.xCreateTime ) );
pxStatBuffer->ff_atime = prvFileTime( &( xDirEntry.xAccessedTime ) );
pxStatBuffer->ff_mtime = prvFileTime( &( xDirEntry.xModifiedTime ) );
pxStatBuffer->ff_ctime = prvFileTime( &( xDirEntry.xCreateTime ) );
}
#endif
}
Expand Down
6 changes: 3 additions & 3 deletions include/ff_stdio.h
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,9 @@

/* Note time_t must be used here otherwise will have bugs when 2032 (uint32_t second clock rolls over) */
#if ( ffconfigTIME_SUPPORT == 1 )
time_t st_atime;
time_t st_mtime;
time_t st_ctime;
time_t ff_atime;
time_t ff_mtime;
time_t ff_ctime;
#endif /* ffconfigTIME_SUPPORT */
} FF_Stat_t;

Expand Down

0 comments on commit d4d2c9b

Please sign in to comment.