Skip to content

Commit dc8f6ff

Browse files
serge-sans-pailletstellar
authored andcommitted
[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 swig/swig#2193. Differential Revision: https://reviews.llvm.org/D134877 (cherry picked from commit 81fc5f7)
1 parent 392963b commit dc8f6ff

File tree

2 files changed

+0
-5
lines changed

2 files changed

+0
-5
lines changed

lldb/bindings/CMakeLists.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,6 @@ set(SWIG_COMMON_FLAGS
2626
-features autodoc
2727
-I${LLDB_SOURCE_DIR}/include
2828
-I${CMAKE_CURRENT_SOURCE_DIR}
29-
-D__STDC_LIMIT_MACROS
30-
-D__STDC_CONSTANT_MACROS
3129
${DARWIN_EXTRAS}
3230
)
3331

lldb/bindings/interfaces.swig

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
/* Various liblldb typedefs that SWIG needs to know about. */
22
#define __extension__ /* Undefine GCC keyword to make Swig happy when processing glibc's stdint.h. */
3-
/* The ISO C99 standard specifies that in C++ implementations limit macros such
4-
as INT32_MAX should only be defined if __STDC_LIMIT_MACROS is. */
5-
#define __STDC_LIMIT_MACROS
63
%include "stdint.i"
74

85
%include "lldb/lldb-defines.h"

0 commit comments

Comments
 (0)