From 968a6f3c0ac4690a6fc74e8d84058bce91019c2e Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Tue, 15 Jun 2010 10:12:04 +0100 Subject: Changes for building with Visual Studio 2008 --- src/quotes.cc | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/quotes.cc') 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; } -- cgit v1.2.3