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:

committed by
Alexander Medvednikov

parent
fcc6dd1d4d
commit
c9a39dfdb5
@@ -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
|
||||
|
Reference in New Issue
Block a user