From: Courtney Goeltzenleuchter Date: Fri, 16 Oct 2015 16:04:24 +0000 (-0600) Subject: misc: Fix compile warnings about undefined _MSC_VER X-Git-Tag: upstream/1.1.92~4693 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8a3d7e4e6fc0e40330d41d49ecdefbda7a7a2314;p=platform%2Fupstream%2FVulkan-Tools.git misc: Fix compile warnings about undefined _MSC_VER commit: a500fc4 --- diff --git a/include/vulkan.h b/include/vulkan.h index a38b848..b11c0a3 100644 --- a/include/vulkan.h +++ b/include/vulkan.h @@ -44,7 +44,7 @@ extern "C" { #define VK_API_VERSION VK_MAKE_VERSION(0, 175, 0) -#if defined(__cplusplus) && (_MSC_VER >= 1800 || __cplusplus >= 201103L) +#if defined(__cplusplus) && ((defined(_MSC_VER) && _MSC_VER >= 1800) || __cplusplus >= 201103L) #define VK_NULL_HANDLE nullptr #else #define VK_NULL_HANDLE 0