Skip to content

Commit

Permalink
[lldb] Get rid of __STDC_LIMIT_MACROS and __STDC_CONSTANT_MACROS
Browse files Browse the repository at this point in the history
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)
  • Loading branch information
serge-sans-paille authored and tstellar committed Nov 15, 2022
1 parent 392963b commit dc8f6ff
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 5 deletions.
2 changes: 0 additions & 2 deletions lldb/bindings/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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}
)

Expand Down
3 changes: 0 additions & 3 deletions lldb/bindings/interfaces.swig
Original file line number Diff line number Diff line change
@@ -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"
Expand Down

0 comments on commit dc8f6ff

Please sign in to comment.