/** * This file has no copyright assigned and is placed in the Public Domain. * This file is part of the mingw-w64 runtime package. * No warranty is given; refer to the file DISCLAIMER.PD within this package. */ #include #include #include #include #include #include "_findX.h" static intptr_t __cdecl emu__findfirst64(const char *path, struct __finddata64_t *find_data) { WIN32_FIND_DATAA win32_find_data; HANDLE handle; handle = FindFirstFileA(path, &win32_find_data); win32_find_data_to_crt_find_data(handle != INVALID_HANDLE_VALUE, &win32_find_data, find_data); return (intptr_t)handle; } #define RETT intptr_t #define FUNC _findfirst64 #define ARGS const char *path, struct __finddata64_t *find_data #define CALL path, find_data #include "msvcrt_or_emu_glue.h"