Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 21 Aug 2014 15:10:10 +0000 (UTC)
From:      Alexander Kabaev <kan@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r270277 - head/include
Message-ID:  <201408211510.s7LFAAET018558@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: kan
Date: Thu Aug 21 15:10:10 2014
New Revision: 270277
URL: http://svnweb.freebsd.org/changeset/base/270277

Log:
  Add guards to ptrdiff_t definition in include/stddef.h
  
  Back in 2011 obrien has added the #define macro in sys/sys/stddef.h to
  guard ptrdiff_t. Add similar protection to the identical code in
  include/stddef.h.
  
  Submitted by:   Mariusz Zaborski <oshogbo@FreeBSD.org>
  MFC after:      1 week

Modified:
  head/include/stddef.h

Modified: head/include/stddef.h
==============================================================================
--- head/include/stddef.h	Thu Aug 21 15:07:25 2014	(r270276)
+++ head/include/stddef.h	Thu Aug 21 15:10:10 2014	(r270277)
@@ -38,7 +38,10 @@
 #include <sys/_null.h>
 #include <sys/_types.h>
 
+#ifndef _PTRDIFF_T_DECLARED
 typedef	__ptrdiff_t	ptrdiff_t;
+#define	_PTRDIFF_T_DECLARED
+#endif
 
 #if __BSD_VISIBLE
 #ifndef _RUNE_T_DECLARED



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