diff options
author | serge-sans-paille <sguelton@redhat.com> | 2022-09-29 21:48:38 +0200 |
---|---|---|
committer | Tom Stellard <tstellar@redhat.com> | 2022-11-15 15:42:01 -0800 |
commit | dc8f6ffc3bf297098a1dfd3fbce801afbe9f5238 (patch) | |
tree | f9fd0c8fa791d76a22b7b16fc4586aa8b06bf7e9 | |
parent | 392963bb1daf7ec8822a0f02929a8ada17eb0a0a (diff) | |
download | llvm-dc8f6ffc3bf297098a1dfd3fbce801afbe9f5238.tar.gz |
[lldb] Get rid of __STDC_LIMIT_MACROS and __STDC_CONSTANT_MACROS
C++11 made the use of these macro obsolete, see https://sourceware.org/bugzilla/show_bug.cgi?id=15366
As a side effect this prevents https://github.com/swig/swig/issues/2193.
Differential Revision: https://reviews.llvm.org/D134877
(cherry picked from commit 81fc5f7909a4ef5a8d4b5da2a10f77f7cb01ba63)
-rw-r--r-- | lldb/bindings/CMakeLists.txt | 2 | ||||
-rw-r--r-- | lldb/bindings/interfaces.swig | 3 |
2 files changed, 0 insertions, 5 deletions
diff --git a/lldb/bindings/CMakeLists.txt b/lldb/bindings/CMakeLists.txt index c8aa0bcf9681..9eed2f1e6299 100644 --- a/lldb/bindings/CMakeLists.txt +++ b/lldb/bindings/CMakeLists.txt @@ -26,8 +26,6 @@ set(SWIG_COMMON_FLAGS -features autodoc -I${LLDB_SOURCE_DIR}/include -I${CMAKE_CURRENT_SOURCE_DIR} - -D__STDC_LIMIT_MACROS - -D__STDC_CONSTANT_MACROS ${DARWIN_EXTRAS} ) diff --git a/lldb/bindings/interfaces.swig b/lldb/bindings/interfaces.swig index c9a6d0f06056..021c7683d170 100644 --- a/lldb/bindings/interfaces.swig +++ b/lldb/bindings/interfaces.swig @@ -1,8 +1,5 @@ /* Various liblldb typedefs that SWIG needs to know about. */ #define __extension__ /* Undefine GCC keyword to make Swig happy when processing glibc's stdint.h. */ -/* The ISO C99 standard specifies that in C++ implementations limit macros such - as INT32_MAX should only be defined if __STDC_LIMIT_MACROS is. */ -#define __STDC_LIMIT_MACROS %include "stdint.i" %include "lldb/lldb-defines.h" |