diff options
author | Ran Benita <ran@unusedvar.com> | 2023-04-11 23:24:47 +0300 |
---|---|---|
committer | Ran Benita <ran@unusedvar.com> | 2023-04-11 23:29:25 +0300 |
commit | bd79a960f596574e9c2ea59347f9afac469ef532 (patch) | |
tree | 77a5c458c1d2ce7d07a404a69f7575caad5196ed /bench/bench.c | |
parent | 13d4b7f6417795b9ec634a766d0bf6afbf82c946 (diff) | |
download | libxkbcommon-bd79a960f596574e9c2ea59347f9afac469ef532.tar.gz libxkbcommon-bd79a960f596574e9c2ea59347f9afac469ef532.tar.bz2 libxkbcommon-bd79a960f596574e9c2ea59347f9afac469ef532.zip |
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/bench.c')
-rw-r--r-- | bench/bench.c | 2 |
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> |