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

compiler: build tetris executable on windows with both msvc and mingw gcc

This commit is contained in:
Delyan Angelov
2019-09-03 16:09:43 +03:00
committed by Alexander Medvednikov
parent fcc6dd1d4d
commit c9a39dfdb5
7 changed files with 81 additions and 36 deletions

View File

@@ -43,7 +43,9 @@ CommonCHeaders = '
#include <windows.h>
// must be included after <windows.h>
#ifndef __TINYC__
#include <shellapi.h>
#endif
#include <io.h> // _waccess
#include <fcntl.h> // _O_U8TEXT
@@ -54,8 +56,8 @@ CommonCHeaders = '
#define _Atomic volatile
// MSVC cannot parse some things properly
#undef EMPTY_STRUCT_DECLARATION
#define EMPTY_STRUCT_DECLARATION void *____dummy_variable
//#undef EMPTY_STRUCT_DECLARATION
//#define EMPTY_STRUCT_DECLARATION void *____dummy_variable
#undef OPTION_CAST
#define OPTION_CAST(x)
#endif