#define UNICODE #include #include typedef wchar_t F_CHAR; typedef char F_SYMBOL; #define unbox_symbol_string unbox_char_string #define from_symbol_string from_char_string #define primitive_string_to_native_alien primitive_string_to_u16_alien #define STR_FORMAT L"%ls" #define FACTOR_OS_STRING "windows" #define DLLEXPORT __declspec(dllexport) #define SETJMP setjmp #define LONGJMP longjmp #define JMP_BUF jmp_buf /* Difference between Jan 1 00:00:00 1601 and Jan 1 00:00:00 1970 */ #define EPOCH_OFFSET 0x019db1ded53e8000LL F_STRING *get_error_message(void); DLLEXPORT F_CHAR *error_message(DWORD id); INLINE void init_ffi(void) {} void ffi_dlopen(F_DLL *dll, bool error); void *ffi_dlsym(F_DLL *dll, F_SYMBOL *symbol, bool error); void ffi_dlclose(F_DLL *dll); void primitive_open_file(void); void primitive_stat(void); void primitive_read_dir(void); void primitive_cwd(void); void primitive_cd(void); INLINE void init_signals(void) {} INLINE void early_init(void) {} const char *default_image_path(void); long getpagesize (void); s64 current_millis(void); INLINE void reset_stdio(void) {}