aboutsummaryrefslogtreecommitdiffstats
path: root/icepack
diff options
context:
space:
mode:
authorClifford Wolf <clifford@clifford.at>2015-08-21 19:50:52 +0200
committerClifford Wolf <clifford@clifford.at>2015-08-21 19:50:52 +0200
commitd094abca1c1c2d21b2b92dc743e2d5e767a97153 (patch)
tree10d93e1cdd921f0da131c7d96f48b42e5a602e4a /icepack
parent24f521e1c49944a2d4702540060a4a67d75fb6cb (diff)
downloadicestorm-d094abca1c1c2d21b2b92dc743e2d5e767a97153.tar.gz
icestorm-d094abca1c1c2d21b2b92dc743e2d5e767a97153.tar.bz2
icestorm-d094abca1c1c2d21b2b92dc743e2d5e767a97153.zip
cleaned up VS2013 fixes
Diffstat (limited to 'icepack')
-rw-r--r--icepack/icepack.cc18
1 files changed, 2 insertions, 16 deletions
diff --git a/icepack/icepack.cc b/icepack/icepack.cc
index 93a4fa9..6a9e05a 100644
--- a/icepack/icepack.cc
+++ b/icepack/icepack.cc
@@ -22,20 +22,15 @@
#include <string>
#include <fstream>
#include <iostream>
+#include <algorithm>
#include <sstream>
#include <cstdint>
#include <stdio.h>
#include <stdarg.h>
-/*
- * needed for VS2013 at least
- */
#ifdef _WIN32
-
#define __PRETTY_FUNCTION__ __FUNCTION__
-#include <algorithm>
-
#endif
@@ -1139,16 +1134,7 @@ int main(int argc, char **argv)
std::ostream *osp;
if (parameters.size() >= 1 && parameters[0] != "-") {
-
-
- /* VS2013 would open .bin file as ascii */
-#ifdef _WIN32
ifs.open(parameters[0], std::ios::binary);
-#else
- ifs.open(parameters[0]);
-#endif
-
-
if (!ifs.is_open())
error("Failed to open input file.\n");
isp = &ifs;
@@ -1157,7 +1143,7 @@ int main(int argc, char **argv)
}
if (parameters.size() >= 2 && parameters[1] != "-") {
- ofs.open(parameters[1]);
+ ofs.open(parameters[1], std::ios::binary);
if (!ofs.is_open())
error("Failed to open output file.\n");
osp = &ofs;