summaryrefslogtreecommitdiff
path: root/src/quotes.cc
diff options
context:
space:
mode:
authorTim Landscheidt <tim@tim-landscheidt.de>2019-01-15 14:21:19 +0000
committerMartin Michlmayr <tbm@cyrius.com>2019-01-25 17:10:13 -0300
commit0e5f0792ff7cfcc2012a53fa5372f4d6d04b5948 (patch)
treeafdbc0ee4d51b2e163e16310ff9d21529cb2c9fe /src/quotes.cc
parentccd330746a77cf335b2816a3048a8e25e61f8ed4 (diff)
downloadfork-ledger-0e5f0792ff7cfcc2012a53fa5372f4d6d04b5948.tar.gz
fork-ledger-0e5f0792ff7cfcc2012a53fa5372f4d6d04b5948.tar.bz2
fork-ledger-0e5f0792ff7cfcc2012a53fa5372f4d6d04b5948.zip
Drop support for gcc 2 and earlier
Diffstat (limited to 'src/quotes.cc')
-rw-r--r--src/quotes.cc7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/quotes.cc b/src/quotes.cc
index 50791560..8ae8ca90 100644
--- a/src/quotes.cc
+++ b/src/quotes.cc
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2003-2018, John Wiegley. All rights reserved.
+ * Copyright (c) 2003-2019, John Wiegley. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
@@ -79,13 +79,8 @@ commodity_quote_from_script(commodity_t& commodity,
if (optional<std::pair<commodity_t *, price_point_t> > point =
commodity_pool_t::current_pool->parse_price_directive(buf)) {
if (commodity_pool_t::current_pool->price_db) {
-#if defined(__GNUG__) && __GNUG__ < 3
- ofstream database(*commodity_pool_t::current_pool->price_db,
- ios::out | ios::app);
-#else
ofstream database(*commodity_pool_t::current_pool->price_db,
std::ios_base::out | std::ios_base::app);
-#endif
database << "P "
<< format_datetime(point->second.when, FMT_WRITTEN)
<< " " << commodity.symbol()