X-Git-Url: http://www.wagner.pp.ru/gitweb/?a=blobdiff_plain;f=gostsum.c;fp=gostsum.c;h=d9860e4b61581888f799485554f13a2b66c7d334;hb=9d0a4584f65d09d396e2dd655f7ae390ac64d60e;hp=aed2a478f7a6aeb5c3dc55c731d463c7a75bf225;hpb=2c5c85adf6abc27fd5894c0a82587bc6fbdfb170;p=openssl-gost%2Fengine.git diff --git a/gostsum.c b/gostsum.c index aed2a47..d9860e4 100644 --- a/gostsum.c +++ b/gostsum.c @@ -9,7 +9,16 @@ **********************************************************************/ #include #include +#ifdef _MSC_VER +#include "getopt.h" +# ifndef PATH_MAX +# define PATH_MAX _MAX_PATH +# endif +#include +typedef SSIZE_T ssize_t; +#else #include +#endif #include #include #ifdef _WIN32 @@ -77,7 +86,8 @@ int main(int argc, char **argv) init_gost_hash_ctx(&ctx, b); if (check_file) { char inhash[65], calcsum[65], filename[PATH_MAX]; - int failcount = 0, count = 0, errors = 0; + int failcount = 0, count = 0; + errors = 0; if (check_file == stdin && optind < argc) { check_file = fopen(argv[optind], "r"); if (!check_file) {