diff options
| author | B. Watson <urchlay@slackware.uk> | 2025-11-26 05:59:11 -0500 |
|---|---|---|
| committer | B. Watson <urchlay@slackware.uk> | 2025-11-26 05:59:11 -0500 |
| commit | 40ef881bd66fd3d9acf2e70d9046de25d18ba2da (patch) | |
| tree | 62aafd633e28179ba781611260f964282e04a5d3 /src/alf.c | |
| parent | 664a630518f8f92a8b262e973790bbdb0dfc33ad (diff) | |
| download | alftools-40ef881bd66fd3d9acf2e70d9046de25d18ba2da.tar.gz | |
Add alf/alf.exe to install and windows targets.
Diffstat (limited to 'src/alf.c')
| -rw-r--r-- | src/alf.c | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -125,9 +125,15 @@ void atarify_filename(char *result) { *p = toupper(*p); } +#if defined(__MINGW32__) || defined(__MINGW64__) +#define MOD_TIME st_mtime +#else +#define MOD_TIME st_mtim.tv_sec +#endif + /* see Arcinfo for the gory details. */ unsigned long get_msdos_date_time(void) { - time_t t = in_file_stat.st_mtim.tv_sec; + time_t t = in_file_stat.MOD_TIME; struct tm *tm; int msdos_year; u16 ms_date, ms_time; |
