From bd79a960f596574e9c2ea59347f9afac469ef532 Mon Sep 17 00:00:00 2001 From: Ran Benita Date: Tue, 11 Apr 2023 23:24:47 +0300 Subject: 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 --- src/utils.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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 # include # ifndef S_ISDIR -- cgit v1.2.1