mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-06 23:58:50 +00:00
build_dll; Require an entry point procedure main
This commit is contained in:
@@ -65,12 +65,13 @@ last_write_time :: proc(f: ^File) -> File_Time {
|
||||
last_write_time_by_name :: proc(name: string) -> File_Time {
|
||||
last_write_time: win32.FILETIME
|
||||
data: win32.WIN32_FILE_ATTRIBUTE_DATA
|
||||
|
||||
buf: [1024]byte
|
||||
path := buf[:0]
|
||||
fmt.bprint(^path, name, "\x00")
|
||||
|
||||
if win32.GetFileAttributesExA(path.data, win32.GetFileExInfoStandard, ^data) != 0 {
|
||||
assert(buf.count > name.count)
|
||||
|
||||
copy(buf[:], name as []byte)
|
||||
|
||||
if win32.GetFileAttributesExA(^buf[0], win32.GetFileExInfoStandard, ^data) != 0 {
|
||||
last_write_time = data.last_write_time
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user