summaryrefslogtreecommitdiffstats
path: root/libcxx/include/stdint.h
diff options
context:
space:
mode:
Diffstat (limited to 'libcxx/include/stdint.h')
-rw-r--r--libcxx/include/stdint.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/libcxx/include/stdint.h b/libcxx/include/stdint.h
index c8922984536..d7b6902518a 100644
--- a/libcxx/include/stdint.h
+++ b/libcxx/include/stdint.h
@@ -8,7 +8,12 @@
//===----------------------------------------------------------------------===//
#ifndef _LIBCPP_STDINT_H
+// AIX system headers need stdint.h to be re-enterable while _STD_TYPES_T
+// is defined until an inclusion of it without _STD_TYPES_T occurs, in which
+// case the header guard macro is defined.
+#if !defined(_AIX) || !defined(_STD_TYPES_T)
#define _LIBCPP_STDINT_H
+#endif // _STD_TYPES_T
/*
stdint.h synopsis
OpenPOWER on IntegriCloud