Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 29 Jan 2009 16:51:09 +0000 (UTC)
From:      Roman Divacky <rdivacky@FreeBSD.org>
To:        cvs-src-old@freebsd.org
Subject:   cvs commit: src/sys/sys _null.h
Message-ID:  <200901291651.n0TGpL9j004634@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
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



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