From: VMware, Inc <> Date: Sat, 28 May 2011 19:54:22 +0000 (-0700) Subject: Changes in shared code that don't affect open-vm-tools functionality. X-Git-Tag: 2011.05.27-420096~39 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=bc2a99c180ff6eefa2b07cb08cf953affd2df5a5;p=thirdparty%2Fopen-vm-tools.git Changes in shared code that don't affect open-vm-tools functionality. Signed-off-by: Marcelo Vanzin --- diff --git a/open-vm-tools/lib/include/hostinfo.h b/open-vm-tools/lib/include/hostinfo.h index 316f5d5fb..c646fa5c8 100644 --- a/open-vm-tools/lib/include/hostinfo.h +++ b/open-vm-tools/lib/include/hostinfo.h @@ -202,4 +202,12 @@ Bool Hostinfo_GetLoadAverage(uint32 *l); size_t Hostinfo_GetKernelZoneElemSize(char const *name); #endif +#ifdef _WIN32 +static INLINE Bool +Hostinfo_AtLeastVista(void) +{ + return (Hostinfo_GetOSType() >= OS_VISTA); +} +#endif + #endif /* ifndef _HOSTINFO_H_ */