From: John Wolfe Date: Mon, 22 Feb 2021 17:36:59 +0000 (-0800) Subject: Compiler minimums: bump to gcc-4.4 X-Git-Tag: stable-11.3.0~146 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4fa8c3dde624e209af5ecaaeb6ac720d9abfaa81;p=thirdparty%2Fopen-vm-tools.git Compiler minimums: bump to gcc-4.4 --- diff --git a/open-vm-tools/lib/include/vm_basic_types.h b/open-vm-tools/lib/include/vm_basic_types.h index ce4d5812c..fe9589b72 100644 --- a/open-vm-tools/lib/include/vm_basic_types.h +++ b/open-vm-tools/lib/include/vm_basic_types.h @@ -756,19 +756,20 @@ typedef void * UserVA; /* * At present, we effectively require a compiler that is at least - * gcc-4.1 (circa 2006). Enforce this here, various things below + * gcc-4.4 (circa 2009). Enforce this here, various things below * this line depend upon it. * * Current oldest compilers: - * - guest tools: 4.1.2 (freebsd/solaris) * - buildhost compiler: 4.4.3 * - hosted kernel modules: 4.5 + * - widespread usage: 4.8 * * SWIG's preprocessor is exempt. + * clang pretends to be gcc (4.2.1 by default), so needs to be excluded. */ -#ifndef SWIG -#if defined __GNUC__ && (__GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 1)) -#error "gcc version is too old, need gcc-4.1 or better" +#if !defined __clang__ && !defined SWIG +#if defined __GNUC__ && (__GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 4)) +#error "gcc version is too old, need gcc-4.4 or better" #endif #endif