1
0
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:
joe-conigliaro
2019-09-16 20:01:07 +10:00
committed by Alexander Medvednikov
parent 5f43a61e0d
commit cbd4478b5e
5 changed files with 6 additions and 16 deletions

View File

@@ -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