diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2009-12-13 10:32:44 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2009-12-13 10:32:44 +0200 |
commit | 47a0fa12397770ea49ea80f164dba8e0f82e97d1 (patch) | |
tree | 588f490b282c79df2396432bfe0e8ede7509c4b1 /cli/generator.cxx | |
parent | 9284f891fd2b15c25d7107d77c9bce100054fe3d (diff) |
Mark 'stdout' as a reserved name
On some platforms (e.g., Windows/VC++ 8.0) stdout is a macro.
Diffstat (limited to 'cli/generator.cxx')
-rw-r--r-- | cli/generator.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/cli/generator.cxx b/cli/generator.cxx index 7531ffe..3d7fa52 100644 --- a/cli/generator.cxx +++ b/cli/generator.cxx @@ -111,7 +111,7 @@ generate (options const& ops, semantics::cli_unit& unit, path const& p) if (!gen_cxx && !gen_man && !gen_html) gen_cxx = true; - if (ops.stdout ()) + if (ops.stdout_ ()) { if (gen_cxx) { @@ -306,7 +306,7 @@ generate (options const& ops, semantics::cli_unit& unit, path const& p) ofstream man; - if (!ops.stdout ()) + if (!ops.stdout_ ()) { path man_path (base + ops.man_suffix ()); @@ -325,7 +325,7 @@ generate (options const& ops, semantics::cli_unit& unit, path const& p) auto_rm.add (man_path); } - ostream& os (ops.stdout () ? cout : man); + ostream& os (ops.stdout_ () ? cout : man); if (prologue.is_open ()) os << prologue.rdbuf (); @@ -362,7 +362,7 @@ generate (options const& ops, semantics::cli_unit& unit, path const& p) ofstream html; - if (!ops.stdout ()) + if (!ops.stdout_ ()) { path html_path (base + ops.html_suffix ()); @@ -381,7 +381,7 @@ generate (options const& ops, semantics::cli_unit& unit, path const& p) auto_rm.add (html_path); } - ostream& os (ops.stdout () ? cout : html); + ostream& os (ops.stdout_ () ? cout : html); if (prologue.is_open ()) os << prologue.rdbuf (); |