summaryrefslogtreecommitdiff
path: root/src/quotes.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2010-06-15 10:12:04 +0100
committerJohn Wiegley <johnw@newartisans.com>2010-06-15 05:14:00 -0400
commit968a6f3c0ac4690a6fc74e8d84058bce91019c2e (patch)
tree25874de7e90c34224c842e6b716ca9e82fe01028 /src/quotes.cc
parent76b1ed68509d11308d50710f0542cef8fa437329 (diff)
downloadfork-ledger-968a6f3c0ac4690a6fc74e8d84058bce91019c2e.tar.gz
fork-ledger-968a6f3c0ac4690a6fc74e8d84058bce91019c2e.tar.bz2
fork-ledger-968a6f3c0ac4690a6fc74e8d84058bce91019c2e.zip
Changes for building with Visual Studio 2008
Diffstat (limited to 'src/quotes.cc')
-rw-r--r--src/quotes.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/quotes.cc b/src/quotes.cc
index 90c1f3eb..0cc8d06b 100644
--- a/src/quotes.cc
+++ b/src/quotes.cc
@@ -62,6 +62,7 @@ commodity_quote_from_script(commodity_t& commodity,
DEBUG("commodity.download", "invoking command: " << getquote_cmd);
bool success = true;
+#ifndef WIN32
if (FILE * fp = popen(getquote_cmd.c_str(), "r")) {
if (std::feof(fp) || ! std::fgets(buf, 255, fp))
success = false;
@@ -103,6 +104,7 @@ commodity_quote_from_script(commodity_t& commodity,
// Don't try to download this commodity again.
commodity.add_flags(COMMODITY_NOMARKET);
}
+#endif
return none;
}