Skip to content

Commit

Permalink
fix CI
Browse files Browse the repository at this point in the history
  • Loading branch information
zoff99 committed Jul 17, 2024
1 parent 95add8b commit fd7718b
Showing 1 changed file with 18 additions and 3 deletions.
21 changes: 18 additions & 3 deletions amalgamation/amalgamation_test.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,28 @@

#define _GNU_SOURCE

//#include <ctype.h>
#include <stdio.h>
#include <stdint.h>
#include <stdlib.h>
//#include <string.h>
//#include <sys/types.h>
#if !defined(OS_WIN32)
#include <unistd.h>
#else


#include <windows.h>

void usleep(int waitTime) {
__int64 time1 = 0, time2 = 0, freq = 0;

QueryPerformanceCounter((LARGE_INTEGER *) &time1);
QueryPerformanceFrequency((LARGE_INTEGER *)&freq);

do {
QueryPerformanceCounter((LARGE_INTEGER *) &time2);
} while((time2-time1) < waitTime);
}

#endif

#include <sodium.h>

Expand Down

0 comments on commit fd7718b

Please sign in to comment.