Differences From Artifact [05c7194aa4]:
- File
src/OFFileManager.m
— part of check-in
[2339bc3407]
at
2019-04-15 21:10:33
on branch trunk
— Use GetFileAttributesExW() instead of _wstat64()
Unlike _wstat64(), GetFileAttributesExW() works on drives. (user: js, size: 23995) [annotate] [blame] [check-ins using]
To Artifact [3d2ebfc062]:
- File src/OFFileManager.m — part of check-in [50a6ffd4b1] at 2019-04-21 09:58:27 on branch trunk — Fix compilation on AmigaOS 4 with 53.30 SDK (user: js, size: 24061) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 | const of_file_type_t of_file_type_fifo = @"of_file_type_fifo"; const of_file_type_t of_file_type_character_special = @"of_file_type_character_special"; const of_file_type_t of_file_type_block_special = @"of_file_type_block_special"; const of_file_type_t of_file_type_socket = @"of_file_type_socket"; #ifdef OF_AMIGAOS4 extern struct ExecIFace *IExec; static struct Library *DOSBase = NULL; static struct DOSIFace *IDOS = NULL; #endif static OFFileManager *defaultManager; #ifdef OF_AMIGAOS static bool dirChanged = false; static BPTR originalDirLock = 0; OF_DESTRUCTOR() { if (dirChanged) UnLock(CurrentDir(originalDirLock)); # ifdef OF_AMIGAOS4 if (IDOS != NULL) | > | | 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 | const of_file_type_t of_file_type_fifo = @"of_file_type_fifo"; const of_file_type_t of_file_type_character_special = @"of_file_type_character_special"; const of_file_type_t of_file_type_block_special = @"of_file_type_block_special"; const of_file_type_t of_file_type_socket = @"of_file_type_socket"; #ifdef OF_AMIGAOS4 # define CurrentDir(lock) SetCurrentDir(lock) extern struct ExecIFace *IExec; static struct Library *DOSBase = NULL; static struct DOSIFace *IDOS = NULL; #endif static OFFileManager *defaultManager; #ifdef OF_AMIGAOS static bool dirChanged = false; static BPTR originalDirLock = 0; OF_DESTRUCTOR() { if (dirChanged) UnLock(CurrentDir(originalDirLock)); # ifdef OF_AMIGAOS4 if (IDOS != NULL) DropInterface((struct Interface *)IDOS); if (DOSBase != NULL) CloseLibrary(DOSBase); # endif } #endif |
︙ | ︙ |