mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
compiler: fix msvc empty struct & enable travis msvc
This commit is contained in:

committed by
Alexander Medvednikov

parent
5f43a61e0d
commit
cbd4478b5e
@@ -43,6 +43,8 @@ CommonCHeaders = '
|
||||
#define OPTION_CAST(x) (x)
|
||||
|
||||
#ifdef _WIN32
|
||||
#undef EMPTY_STRUCT_INITIALIZATION
|
||||
#define EMPTY_STRUCT_INITIALIZATION 0
|
||||
#define WIN32_LEAN_AND_MEAN
|
||||
#include <windows.h>
|
||||
|
||||
@@ -61,11 +63,9 @@ CommonCHeaders = '
|
||||
|
||||
// MSVC cannot parse some things properly
|
||||
#undef EMPTY_STRUCT_DECLARATION
|
||||
#undef EMPTY_STRUCT_INITIALIZATION
|
||||
#undef OPTION_CAST
|
||||
|
||||
#define EMPTY_STRUCT_DECLARATION int ____dummy_variable
|
||||
#define EMPTY_STRUCT_INITIALIZATION 0
|
||||
#define OPTION_CAST(x)
|
||||
#endif
|
||||
|
||||
|
Reference in New Issue
Block a user