[Lldb-commits] [lldb] r329597 - Fix compilation error caused by tgmath.h.

Tatyana Krasnukha via lldb-commits lldb-commits at lists.llvm.org
Mon Apr 9 10:32:56 PDT 2018


Author: tkrasnukha
Date: Mon Apr  9 10:32:56 2018
New Revision: 329597

URL: http://llvm.org/viewvc/llvm-project?rev=329597&view=rev
Log:
Fix compilation error caused by tgmath.h.

On CentOS calling functions from <tgmath.h> produces multiple errors "'void*' is not a pointer-to-object type".

Modified:
    lldb/trunk/lit/Expr/Inputs/anonymous-struct.cpp

Modified: lldb/trunk/lit/Expr/Inputs/anonymous-struct.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/lit/Expr/Inputs/anonymous-struct.cpp?rev=329597&r1=329596&r2=329597&view=diff
==============================================================================
--- lldb/trunk/lit/Expr/Inputs/anonymous-struct.cpp (original)
+++ lldb/trunk/lit/Expr/Inputs/anonymous-struct.cpp Mon Apr  9 10:32:56 2018
@@ -1,4 +1,4 @@
-#include <tgmath.h>
+#include <cmath>
 
 typedef struct {
     float f;




More information about the lldb-commits mailing list