summaryrefslogtreecommitdiffstats
path: root/clang/lib/Headers/stdint.h
diff options
context:
space:
mode:
authorJohn Thompson <John.Thompson.JTSoftware@gmail.com>2009-11-02 22:28:12 +0000
committerJohn Thompson <John.Thompson.JTSoftware@gmail.com>2009-11-02 22:28:12 +0000
commitac0b098d4d055d9e3951902000044094fc8ab702 (patch)
tree573daee97d709cdc6c285373c0080cdbdf6fc0e0 /clang/lib/Headers/stdint.h
parentf639b84bc566b86b535fee9e528e500dc811f488 (diff)
downloadbcm5719-llvm-ac0b098d4d055d9e3951902000044094fc8ab702.tar.gz
bcm5719-llvm-ac0b098d4d055d9e3951902000044094fc8ab702.zip
Added __has_include and __has_include_next.
llvm-svn: 85834
Diffstat (limited to 'clang/lib/Headers/stdint.h')
-rw-r--r--clang/lib/Headers/stdint.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/lib/Headers/stdint.h b/clang/lib/Headers/stdint.h
index a7020d838ec..f79a0f4af55 100644
--- a/clang/lib/Headers/stdint.h
+++ b/clang/lib/Headers/stdint.h
@@ -28,7 +28,8 @@
/* If we're hosted, fall back to the system's stdint.h, which might have
* additional definitions.
*/
-#if __STDC_HOSTED__
+#if __STDC_HOSTED__ && \
+ defined(__has_include_next) && __has_include_next(<stdint.h>)
# include_next <stdint.h>
#else
OpenPOWER on IntegriCloud