[Lldb-commits] [PATCH] D151381: [lldb][NFCI] Include <cstdio> in SBDefines for FILE * definition

Alex Langford via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Wed May 24 15:03:49 PDT 2023

bulbazord created this revision.
bulbazord added reviewers: JDevlieghere, jingham, mib.
Herald added a project: All.
bulbazord requested review of this revision.
Herald added a project: LLDB.
Herald added a subscriber: lldb-commits.

There are a few API headers that use FILE * but do not include the
correct header for their definition. Instead of including <cstdio> in each
of the headers manually, it seems easiest to include it in SBDefines to
get them all at once.

  rG LLVM Github Monorepo



Index: lldb/include/lldb/API/SBDefines.h
--- lldb/include/lldb/API/SBDefines.h
+++ lldb/include/lldb/API/SBDefines.h
@@ -15,6 +15,8 @@
 #include "lldb/lldb-types.h"
 #include "lldb/lldb-versioning.h"
+#include <cstdio> // For FILE *
 #ifndef LLDB_API
 #if defined(_WIN32)
 #if defined(LLDB_IN_LIBLLDB)

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D151381.525350.patch
Type: text/x-patch
Size: 374 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20230524/ab52bfe6/attachment.bin>

More information about the lldb-commits mailing list