lastclock = b;
}
+#ifndef WIN32
#include <sys/signal.h>
+#endif
volatile BOOL quit = 0;
void mysignal(int signo)
{
quit = 1;
}
-#include <err.h>
+#include <stdarg.h>
+#include <stdlib.h>
+static void errx(int status, const char *format, ...)
+{
+ va_list ap;
+ va_start(ap, format);
+ vfprintf(stderr, format, ap);
+ exit(status);
+}
+
int main(int argc, char **argv)
{
char buf[65536]; size_t bufsize;
errx(3, "readpub fail");
*/
+#ifndef WIN32
signal(SIGINT, mysignal);
+#endif
int n = 0;
double bench_gen = 0, bench_fp = 0, bench_stop = 0;
extern "C" {
#endif
+#ifdef WIN32
+# define SHA2_USE_INTTYPES_H
+# define LITTLE_ENDIAN 1234
+# define BIG_ENDIAN 4321
+# define BYTE_ORDER LITTLE_ENDIAN
+#else
+# define SHA2_USE_INTTYPES_H
+#endif
/*
* Import u_intXX_t size_t type definitions from system headers. You