mirror of
https://github.com/cathugger/mkp224o.git
synced 2025-05-14 05:52:49 +00:00
attempt to support windows #2
This commit is contained in:
parent
0a3f40d5e7
commit
01c3b9f3f5
2 changed files with 10 additions and 4 deletions
8
main.c
8
main.c
|
@ -20,6 +20,12 @@
|
|||
#include "ed25519/ed25519.h"
|
||||
#include "ioutil.h"
|
||||
|
||||
#ifndef _WIN32
|
||||
#define FSZ "%zu"
|
||||
#else
|
||||
#define FSZ "%Iu"
|
||||
#endif
|
||||
|
||||
// additional 0 terminator is added by C
|
||||
static const char * const pkprefix = "== ed25519v1-public: type0 ==\0\0";
|
||||
#define pkprefixlen (29 + 3)
|
||||
|
@ -664,7 +670,7 @@ int main(int argc,char **argv)
|
|||
#endif
|
||||
tret = pthread_create(&VEC_BUF(threads,i),0,fastkeygen ? dofastwork : dowork,tp);
|
||||
if (tret) {
|
||||
fprintf(stderr,"error while making %zuth thread: %d\n",i,tret);
|
||||
fprintf(stderr,"error while making " FSZ "th thread: %d\n",i,tret);
|
||||
exit(1);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue