With the removal of Hostinfo_GetAllCpuid in an earlier change, hostinfo.h
can stop including x86cpuid.h and only needs vendor IDs from x86vendor.h.
Unfortunately, quite a few source files depended in hostinfo.h's automatic
inclusion of x86cpuid.h. Fix them to include what they need.
The lib/include/guestStats.h is a special case that happened to succeed because
of a warning that was disabled in x86cpuid.h which also happens to have
been included earlier than this header. Re-disable the warning.
/*********************************************************
- * Copyright (C) 2008-2018 VMware, Inc. All rights reserved.
+ * Copyright (C) 2008-2018,2020 VMware, Inc. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as published
#include "vmware_pack_end.h"
GuestStatHeader;
+#ifdef _MSC_VER
+#pragma warning (disable :4200) // non-std extension: zero-sized array in struct
+#endif
+
typedef
#include "vmware_pack_begin.h"
struct GuestDatumHeader {
#include "vm_basic_types.h"
#include "vm_basic_defs.h"
-#include "x86cpuid.h"
+#include "x86vendor.h"
#include "unicodeTypes.h"
#if defined(__cplusplus)
#if !defined(WINNT_DDK)
# include "hostinfo.h"
# include "str.h"
+# include "x86cpuid.h"
#endif
/*