Skip to content

Commit

Permalink
wip test defines
Browse files Browse the repository at this point in the history
  • Loading branch information
aklomp committed Jan 9, 2024
1 parent 0a8de55 commit b20e404
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/benchmark.c
Expand Up @@ -13,7 +13,7 @@
#include <stdio.h>
#include <time.h>

#ifdef _WIN32
#if defined(_WIN32) || defined(_WIN64)
# include <windows.h>
# include <wincrypt.h>
#else
Expand Down Expand Up @@ -66,7 +66,7 @@ bytes_to_mb (size_t bytes)
static bool
get_random_data (struct buffers *b, char **errmsg)
{
#ifdef _WIN32
#if defined(_WIN32) || defined(_WIN64)
HCRYPTPROV hProvider = 0;

if (!CryptAcquireContext(&hProvider, 0, 0, PROV_RSA_FULL, CRYPT_VERIFYCONTEXT | CRYPT_SILENT)) {
Expand Down Expand Up @@ -130,7 +130,7 @@ timediff_sec (base64_timespec *start, base64_timespec *end)

return (float)((diff * tb.numer) / tb.denom) / 1e9f;
}
#elif defined(_WIN32) && !(defined(__MINGW32__) || defined(__MINGW64__))
#elif (defined(_WIN32) || defined(_WIN64)) && !(defined(__MINGW32__) || defined(__MINGW64__))
typedef struct timespec base64_timespec;
static void
base64_gettime (base64_timespec *o_time)
Expand Down

0 comments on commit b20e404

Please sign in to comment.