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 /src | |
parent | 13d4b7f6417795b9ec634a766d0bf6afbf82c946 (diff) | |
download | xorg-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 'src')
-rw-r--r-- | src/utils.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/utils.h b/src/utils.h index c263635..eec7f10 100644 --- a/src/utils.h +++ b/src/utils.h @@ -40,7 +40,7 @@ # define F_OK 0 /* Test for existence. */ #endif -#ifdef _MSC_VER +#ifdef _WIN32 # include <direct.h> # include <io.h> # ifndef S_ISDIR |