compiling on mingw is now supported (#1542)

* compiles on mingw-w64
* fixed error in os_file_overwrite on windows
* fixed windows hello_world example
This commit is contained in:
emekoi
2018-09-17 23:13:17 -05:00
committed by Andrew Kelley
parent 13645585fe
commit 68c1d05917
4 changed files with 24 additions and 6 deletions

View File

@@ -1,5 +1,7 @@
use @import("std").os.windows;
extern "user32" stdcallcc fn MessageBoxA(hWnd: ?HANDLE, lpText: ?LPCTSTR, lpCaption: ?LPCTSTR, uType: UINT) c_int;
export fn WinMain(hInstance: HINSTANCE, hPrevInstance: HINSTANCE, lpCmdLine: PWSTR, nCmdShow: INT) INT {
_ = MessageBoxA(null, c"hello", c"title", 0);
return 0;