diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/benchmark.c | 6 | ||||
-rw-r--r-- | src/benchmark.h | 4 |
2 files changed, 5 insertions, 5 deletions
diff --git a/src/benchmark.c b/src/benchmark.c index 840e275..dcde7c0 100644 --- a/src/benchmark.c +++ b/src/benchmark.c @@ -28,7 +28,7 @@ int benchmark_must_finish = 0; -#if defined(_WIN32) +#if defined _WIN32 #include <windows.h> DWORD WINAPI alarm_handler (LPVOID lpParameter) @@ -90,7 +90,7 @@ start_benchmark (struct benchmark_st *st) gettime (&st->start); benchmark_must_finish = 0; -#if defined(_WIN32) +#if defined _WIN32 st->wtimer = CreateWaitableTimer (NULL, TRUE, NULL); if (st->wtimer == NULL) { @@ -126,7 +126,7 @@ stop_benchmark (struct benchmark_st *st, const char *metric) double dspeed, ddata; char imetric[16]; -#if defined(_WIN32) +#if defined _WIN32 if (st->wtimer != NULL) CloseHandle (st->wtimer); if (st->wthread != NULL) diff --git a/src/benchmark.h b/src/benchmark.h index 0e7b11d..4e952a5 100644 --- a/src/benchmark.h +++ b/src/benchmark.h @@ -20,7 +20,7 @@ #include <sys/time.h> #include <time.h> #include <signal.h> -#if defined(_WIN32) +#if defined _WIN32 #include <windows.h> #endif #include "timespec.h" /* gnulib gettime */ @@ -32,7 +32,7 @@ struct benchmark_st struct timespec start; unsigned long size; sighandler_t old_handler; -#if defined(_WIN32) +#if defined _WIN32 HANDLE wtimer; HANDLE wthread; LARGE_INTEGER alarm_timeout; |