aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAlexander Kabaev <kan@FreeBSD.org>2014-08-21 15:10:10 +0000
committerAlexander Kabaev <kan@FreeBSD.org>2014-08-21 15:10:10 +0000
commit7935fd6ef1d83d3be2e57987cbe50a739340a753 (patch)
treeb30406a790889a8bebf927aea2981238ffbf5403 /include
parent925fd94584206c2cbf423dc1c440838cdbcc569b (diff)
downloadsrc-7935fd6ef1d83d3be2e57987cbe50a739340a753.tar.gz
src-7935fd6ef1d83d3be2e57987cbe50a739340a753.zip
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
Notes
Notes: svn path=/head/; revision=270277
Diffstat (limited to 'include')
-rw-r--r--include/stddef.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/stddef.h b/include/stddef.h
index 2c73a2e2d852..7898da251a6e 100644
--- a/include/stddef.h
+++ b/include/stddef.h
@@ -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