[Lldb-commits] [lldb] r251426 - Include <cstdio> to fix build errors.

Hafiz Abid Qadeer via lldb-commits lldb-commits at lists.llvm.org
Tue Oct 27 10:56:23 PDT 2015


Author: abidh
Date: Tue Oct 27 12:56:23 2015
New Revision: 251426

URL: http://llvm.org/viewvc/llvm-project?rev=251426&view=rev
Log:
Include <cstdio> to fix build errors.

This file uses things like fprintf and stderr and <cstdio> is the right
header to include. I was getting build errors without it.


Modified:
    lldb/trunk/source/Core/CxaDemangle.cpp

Modified: lldb/trunk/source/Core/CxaDemangle.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Core/CxaDemangle.cpp?rev=251426&r1=251425&r2=251426&view=diff
==============================================================================
--- lldb/trunk/source/Core/CxaDemangle.cpp (original)
+++ lldb/trunk/source/Core/CxaDemangle.cpp Tue Oct 27 12:56:23 2015
@@ -13,6 +13,7 @@
 // - Included win32.h for snprintf implementation for MSVC
 // - Removed constexpr member initialization for MSVC
 // - Changed argument to alignas() to a literal for MSVC
+// - Include <cstdio> for fprintf, stderr like entities.
 //----------------------------------------------------------------------
 
 #if defined(_MSC_VER)
@@ -40,6 +41,7 @@
 #include <cstdlib>
 #include <cstring>
 #include <cctype>
+#include <cstdio>
 
 namespace lldb_private
 {




More information about the lldb-commits mailing list