Date: Wed, 2 Jul 2014 08:45:27 +0000 (UTC) From: Hans Petter Selasky <hselasky@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r268137 - head/sys/sys Message-ID: <201407020845.s628jRG5031824@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: hselasky Date: Wed Jul 2 08:45:26 2014 New Revision: 268137 URL: http://svnweb.freebsd.org/changeset/base/268137 Log: Define a "__weak" macro for declaring symbols "weak". Modified: head/sys/sys/cdefs.h Modified: head/sys/sys/cdefs.h ============================================================================== --- head/sys/sys/cdefs.h Wed Jul 2 05:45:40 2014 (r268136) +++ head/sys/sys/cdefs.h Wed Jul 2 08:45:26 2014 (r268137) @@ -210,7 +210,9 @@ #define __packed #define __aligned(x) #define __section(x) +#define __weak #else +#define __weak __attribute__((__weak__)) #if !__GNUC_PREREQ__(2, 5) && !defined(__INTEL_COMPILER) #define __dead2 #define __pure2
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201407020845.s628jRG5031824>