svn commit: r200646 - stable/7/sys/sys

John Baldwin jhb at FreeBSD.org
Thu Dec 17 19:54:32 UTC 2009


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
 


More information about the svn-src-all mailing list