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

17 lines
541 B
Text

C++11 ambiguity
Index: v2cc/v2cc-util.h
--- v2cc/v2cc-util.h.orig
+++ v2cc/v2cc-util.h
@@ -448,9 +448,9 @@ emit_posinfo(pIIR_PosInfo pi, string &str, pIIR_PosInf
pIIR_PosInfo_TextFile pit = pIIR_PosInfo_TextFile(pi);
// Emit line number and file name
- str += "#line " + to_string(pit->line_number);
+ str += "#line " + ::to_string(pit->line_number);
if (last_pos == NO_SOURCE_LINE)
- str += " \"" + to_string(pit->file_name) + "\"\n";
+ str += " \"" + ::to_string(pit->file_name) + "\"\n";
else
str += "\n";