From owner-cvs-src-old@FreeBSD.ORG Thu Jan 29 16:51:21 2009 Return-Path: Delivered-To: cvs-src-old@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id AE43E1065749 for ; Thu, 29 Jan 2009 16:51:21 +0000 (UTC) (envelope-from rdivacky@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 9BB838FC1B for ; Thu, 29 Jan 2009 16:51:21 +0000 (UTC) (envelope-from rdivacky@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.3/8.14.3) with ESMTP id n0TGpLdK004635 for ; Thu, 29 Jan 2009 16:51:21 GMT (envelope-from rdivacky@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.3/8.14.3/Submit) id n0TGpL9j004634 for cvs-src-old@freebsd.org; Thu, 29 Jan 2009 16:51:21 GMT (envelope-from rdivacky@repoman.freebsd.org) Message-Id: <200901291651.n0TGpL9j004634@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to rdivacky@repoman.freebsd.org using -f From: Roman Divacky Date: Thu, 29 Jan 2009 16:51:09 +0000 (UTC) To: cvs-src-old@freebsd.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sys/sys _null.h X-BeenThere: cvs-src-old@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: **OBSOLETE** CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Jan 2009 16:51:22 -0000 rdivacky 2009-01-29 16:51:09 UTC FreeBSD src repository Modified files: sys/sys _null.h Log: SVN rev 187895 on 2009-01-29 16:51:09Z by rdivacky Define NULL to be __null in a case of gnu c++. This makes sentinel attribute work ok in C++. Note that we enable this only for gcc 4.x for any value of x. The __null was introduced in gcc 4.1 (in fact it was commited 12 days after release of gcc 4.0) and as we have never released any version of FreeBSD with gcc 4.0 nor ports support gcc 4.0.x this is a safe check. Using __GNUC_PREREQ__ would require us to include cdefs.h in params.h so we just check __GNUC__. Approved by: kib (mentor) Tested by: exp build of ports (done by pav) Tested by: make universe (done by me) Revision Changes Path 1.8 +4 -0 src/sys/sys/_null.h