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

compiler: fix empty structs

This commit is contained in:
joe-conigliaro 2019-09-16 21:44:12 +10:00 committed by Alexander Medvednikov
parent 74ec57e0e1
commit 155fecadb7

View File

@ -39,12 +39,15 @@ CommonCHeaders = '
#endif
#define EMPTY_STRUCT_DECLARATION
#define EMPTY_STRUCT_INITIALIZATION 0
#ifdef __TINYC__
#undef EMPTY_STRUCT_INITIALIZATION
#define EMPTY_STRUCT_INITIALIZATION
#endif
#define OPTION_CAST(x) (x)
#ifdef _WIN32
#undef EMPTY_STRUCT_INITIALIZATION
#define EMPTY_STRUCT_INITIALIZATION 0
#define WIN32_LEAN_AND_MEAN
#include <windows.h>