summaryrefslogtreecommitdiff
path: root/bench
diff options
context:
space:
mode:
authorRan Benita <ran@unusedvar.com>2023-04-11 23:24:47 +0300
committerRan Benita <ran@unusedvar.com>2023-04-11 23:29:25 +0300
commitbd79a960f596574e9c2ea59347f9afac469ef532 (patch)
tree77a5c458c1d2ce7d07a404a69f7575caad5196ed /bench
parent13d4b7f6417795b9ec634a766d0bf6afbf82c946 (diff)
downloadxorg-lib-libxkbcommon-bd79a960f596574e9c2ea59347f9afac469ef532.tar.gz
Possible fix for non-MSVC windows compilers
`_MSC_VER` is specific to MSVC, but there can be other compilers targeting windows. Hopefully they do define `_WIN32`, so let's use that. Refs: https://github.com/xkbcommon/libxkbcommon/issues/305 Signed-off-by: Ran Benita <ran@unusedvar.com>
Diffstat (limited to 'bench')
-rw-r--r--bench/bench.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bench/bench.c b/bench/bench.c
index c28ac65..e6fb635 100644
--- a/bench/bench.c
+++ b/bench/bench.c
@@ -30,7 +30,7 @@
#include "bench.h"
#include "../src/utils.h"
-#ifndef _MSC_VER
+#ifndef _WIN32
#include <sys/time.h>
#else
#include <windows.h>