[Lldb-commits] [lldb] 877ddac - [lldb][NFCI] Include <cstdio> in SBDefines for FILE * definition
Alex Langford via lldb-commits
lldb-commits at lists.llvm.org
Fri May 26 10:56:30 PDT 2023
Author: Alex Langford
Date: 2023-05-26T10:56:17-07:00
New Revision: 877ddac051c4fc6b32e3e45b02dc628b018b381b
URL: https://github.com/llvm/llvm-project/commit/877ddac051c4fc6b32e3e45b02dc628b018b381b
DIFF: https://github.com/llvm/llvm-project/commit/877ddac051c4fc6b32e3e45b02dc628b018b381b.diff
LOG: [lldb][NFCI] Include <cstdio> in SBDefines for FILE * definition
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.
rdar://109579348
Differential Revision: https://reviews.llvm.org/D151381
Added:
Modified:
lldb/include/lldb/API/SBDefines.h
Removed:
################################################################################
diff --git a/lldb/include/lldb/API/SBDefines.h b/lldb/include/lldb/API/SBDefines.h
index 15f808b29fa8d..15b25d08530b8 100644
--- a/lldb/include/lldb/API/SBDefines.h
+++ b/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)
More information about the lldb-commits
mailing list