diff options
| author | Xing Xue <xingxue@outlook.com> | 2019-06-20 15:36:32 +0000 |
|---|---|---|
| committer | Xing Xue <xingxue@outlook.com> | 2019-06-20 15:36:32 +0000 |
| commit | ab4bcd844ab9df699c7f396786dc114f85ab8c45 (patch) | |
| tree | 390c583d649faba0ec372e0ff90ac929813738da /libcxx/include/stdint.h | |
| parent | 345473c791080ff74a37e748a76f6d0d3ef27cf2 (diff) | |
| download | bcm5719-llvm-ab4bcd844ab9df699c7f396786dc114f85ab8c45.tar.gz bcm5719-llvm-ab4bcd844ab9df699c7f396786dc114f85ab8c45.zip | |
AIX system headers need stdint.h and inttypes.h to be re-enterable
Summary:
AIX system headers need stdint.h and inttypes.h to be re-enterable when macro _STD_TYPES_T is defined so that limit macro definitions such as UINT32_MAX can be found. This patch attempts to allow that on AIX.
Reviewers: hubert.reinterpretcast, jasonliu, mclow.lists, EricWF
Reviewed by: hubert.reinterpretcast, mclow.lists
Subscribers: jfb, jsji, christof, cfe-commits, libcxx-commits, llvm-commits
Tags: #LLVM, #clang, #libc++
Differential Revision: https://reviews.llvm.org/D59253
llvm-svn: 363939
Diffstat (limited to 'libcxx/include/stdint.h')
| -rw-r--r-- | libcxx/include/stdint.h | 5 |
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 |

