X-Git-Url: https://www.ginac.de/ginac.git//ginac.git?p=ginac.git;a=blobdiff_plain;f=tools%2Fviewgar.cpp;h=95ecab1067fc85521f7a5ea4d16ed1d3a9a6e972;hp=cfd6cd8d6bf07676ef10277cb35fb5e1822fbd85;hb=33e537213bf028c7c1ceec4ba7c66ef46c5d6722;hpb=695f6ae955ec530cded8f21efd5569df39447f76 diff --git a/tools/viewgar.cpp b/tools/viewgar.cpp index cfd6cd8d..95ecab10 100644 --- a/tools/viewgar.cpp +++ b/tools/viewgar.cpp @@ -3,7 +3,7 @@ * GiNaC archive file viewer. */ /* - * GiNaC Copyright (C) 1999-2005 Johannes Gutenberg University Mainz, Germany + * GiNaC Copyright (C) 1999-2015 Johannes Gutenberg University Mainz, Germany * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -17,18 +17,17 @@ * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ +#include "ginac.h" +using namespace GiNaC; + #include -#include #include +#include #include - -#include "ginac.h" - using namespace std; -using namespace GiNaC; int main(int argc, char **argv) { @@ -46,7 +45,7 @@ int main(int argc, char **argv) dump_mode = true; --argc; ++argv; } - std::ifstream f(*argv); + std::ifstream f(*argv, std::ios_base::binary); archive ar; f >> ar; if (dump_mode) {