Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 17 Dec 2009 19:54:32 +0000 (UTC)
From:      John Baldwin <jhb@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-7@freebsd.org
Subject:   svn commit: r200646 - stable/7/sys/sys
Message-ID:  <200912171954.nBHJsWHL048317@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: jhb
Date: Thu Dec 17 19:54:32 2009
New Revision: 200646
URL: http://svn.freebsd.org/changeset/base/200646

Log:
  Partial merge of 187961 to ease compilation of 8.x code on 7:
  Add a function attribute called `__malloc_like'.

Modified:
  stable/7/sys/sys/cdefs.h

Modified: stable/7/sys/sys/cdefs.h
==============================================================================
--- stable/7/sys/sys/cdefs.h	Thu Dec 17 19:53:16 2009	(r200645)
+++ stable/7/sys/sys/cdefs.h	Thu Dec 17 19:54:32 2009	(r200646)
@@ -224,8 +224,10 @@
 #endif
 
 #if __GNUC_PREREQ__(2, 96)
+#define	__malloc_like	__attribute__((__malloc__))
 #define	__pure		__attribute__((__pure__))
 #else
+#define	__malloc_like
 #define	__pure
 #endif
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200912171954.nBHJsWHL048317>