[icestorm] 46/75: fixed for VS2013
Ruben Undheim
rubund-guest at moszumanska.debian.org
Wed Oct 7 15:52:08 UTC 2015
This is an automated email from the git hooks/post-receive script.
rubund-guest pushed a commit to branch master
in repository icestorm.
commit 2b8be1098634c27491bee1ad30e368a281f5b548
Author: Antti Lukats <Antti.Lukats at googlemail.com>
Date: Fri Aug 21 16:53:24 2015 +0200
fixed for VS2013
---
icepack/icepack.cc | 20 ++++++++++++++++++++
1 file changed, 20 insertions(+)
diff --git a/icepack/icepack.cc b/icepack/icepack.cc
index 3e0f109..93a4fa9 100644
--- a/icepack/icepack.cc
+++ b/icepack/icepack.cc
@@ -28,6 +28,17 @@
#include <stdio.h>
#include <stdarg.h>
+/*
+ * needed for VS2013 at least
+ */
+#ifdef _WIN32
+
+#define __PRETTY_FUNCTION__ __FUNCTION__
+#include <algorithm>
+
+#endif
+
+
using std::vector;
using std::string;
@@ -1128,7 +1139,16 @@ 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;
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/icestorm.git
More information about the debian-science-commits
mailing list