ports/lang/freehdl/patches/patch-v2cc_v2cc-util_cc

30 lines
708 B
Text

Hack for C++11 ambiguity
Index: v2cc/v2cc-util.cc
--- v2cc/v2cc-util.cc.orig
+++ v2cc/v2cc-util.cc
@@ -9,7 +9,6 @@
#include "v2cc-util.h"
-
// ******************************************************************************************
// Some global variables
// ******************************************************************************************
@@ -120,6 +119,8 @@ ppp(pIIR_Root n)
string
to_string(pIIR_ScalarType type, const StaticDataType &value)
{
+// XXX
+#define to_string ::to_string
string str;
StaticDataType v = value;
@@ -142,6 +143,7 @@ to_string(pIIR_ScalarType type, const StaticDataType &
return str;
}
+
// Converts a string item into an IR_TextLiteral