1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

cgen: bring back Windows fixes

This commit is contained in:
Alexey
2020-04-05 17:08:16 +03:00
committed by GitHub
parent 206c1f4ca1
commit 781c20a6ae
3 changed files with 12 additions and 7 deletions

View File

@ -21,7 +21,7 @@ const (
fn C.puts(charptr)
*/
fn init() {
fn builtin_init() {
// Do nothing
}

View File

@ -58,7 +58,7 @@ const (
SYMOPT_DEBUG = 0x80000000
)
fn init() {
fn builtin_init() {
if is_atty(1) > 0 {
C.SetConsoleMode(C.GetStdHandle(C.STD_OUTPUT_HANDLE), C.ENABLE_PROCESSED_OUTPUT | 0x0004) // ENABLE_VIRTUAL_TERMINAL_PROCESSING
C.setbuf(C.stdout, 0)