summaryrefslogtreecommitdiff
path: root/libs
diff options
context:
space:
mode:
authorClifford Wolf <clifford@clifford.at>2014-10-10 18:34:19 +0200
committerClifford Wolf <clifford@clifford.at>2014-10-10 18:34:19 +0200
commit54bf3a95dd859ac1811a5265ad45f9eb596de3db (patch)
treeca4ef75f8ad7610b389103c8028ffba2d8f9f8bb /libs
parent2c683102be85b0ee9c03c85ddcf5d7fd0f004ab7 (diff)
More Win32 build fixes
Diffstat (limited to 'libs')
-rw-r--r--libs/subcircuit/subcircuit.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/libs/subcircuit/subcircuit.cc b/libs/subcircuit/subcircuit.cc
index 84f23d63..cf14df0a 100644
--- a/libs/subcircuit/subcircuit.cc
+++ b/libs/subcircuit/subcircuit.cc
@@ -34,6 +34,7 @@
using namespace SubCircuit;
+#ifndef _YOSYS_
static std::string my_stringf(const char *fmt, ...)
{
std::string string;
@@ -52,6 +53,9 @@ static std::string my_stringf(const char *fmt, ...)
return string;
}
+#else
+# define my_stringf YOSYS_NAMESPACE_PREFIX stringf
+#endif
SubCircuit::Graph::Graph(const Graph &other, const std::vector<std::string> &otherNodes)
{