From: VMware, Inc <> Date: Mon, 20 Dec 2010 21:42:23 +0000 (-0800) Subject: Address feedback in vm_basic_types.h X-Git-Tag: 2010.12.19-339835~62 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=6cedb1fa57425140d8f8aef1b849a80ba8dbb80e;p=thirdparty%2Fopen-vm-tools.git Address feedback in vm_basic_types.h The gcc-3.3 enforcement preprocessor error has a &&/|| precedence problem. Add appropriate parens. Signed-off-by: Marcelo Vanzin --- diff --git a/open-vm-tools/lib/include/vm_basic_types.h b/open-vm-tools/lib/include/vm_basic_types.h index fbb2f03a4..15751280d 100644 --- a/open-vm-tools/lib/include/vm_basic_types.h +++ b/open-vm-tools/lib/include/vm_basic_types.h @@ -655,7 +655,7 @@ typedef void * UserVA; * In practice, most things presently compile with gcc-4.1 or gcc-4.4. * The various linux kernel modules may use older (gcc-3.3) compilers. */ -#if defined __GNUC__ && __GNUC__ < 3 || (__GNUC__ == 3 && __GNUC_MINOR__ < 3) +#if defined __GNUC__ && (__GNUC__ < 3 || (__GNUC__ == 3 && __GNUC_MINOR__ < 3)) #error "gcc version is to old to compile assembly, need gcc-3.3 or better" #endif