summaryrefslogtreecommitdiffstats
path: root/lib/Headers/stdint.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Headers/stdint.h')
-rw-r--r--lib/Headers/stdint.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Headers/stdint.h b/lib/Headers/stdint.h
index a7020d8..f79a0f4 100644
--- a/lib/Headers/stdint.h
+++ b/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