**********************************************************************/
#include <stdio.h>
#include <stdlib.h>
+#ifdef _MSC_VER
+#include "getopt.h"
+# ifndef PATH_MAX
+# define PATH_MAX _MAX_PATH
+# endif
+#include <BaseTsd.h>
+typedef SSIZE_T ssize_t;
+#else
#include <unistd.h>
+#endif
#include <limits.h>
#include <fcntl.h>
+#ifdef _WIN32
+# include <io.h>
+#endif
#include <string.h>
#include "gosthash2012.h"
#define BUF_SIZE 262144
}
if (!hash_stream(ctx, fd, sum, hashsize)) {
perror(filename);
+ close(fd);
return 0;
}
close(fd);