From 1cec500c69b7fff50466b17282e83b3c8490c1fa Mon Sep 17 00:00:00 2001 From: Jason Ekstrand Date: Fri, 13 Oct 2017 10:40:45 -0700 Subject: blob: Use intptr_t instead of ssize_t ssize_t is a GNU extension and is not available on Windows or MacOS. Instead, we use intptr_t which should be effectively equivalent and is part of the C standard. This should fix the Windows and Mac OS builds. Fixes: 3af1c829891a4530682bce113fdd512d4f2de3c6 Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=103253 Reviewed-by: Jose Fonseca Tested-by: Vinson Lee --- src/intel/vulkan/anv_pipeline_cache.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/intel/vulkan/anv_pipeline_cache.c') diff --git a/src/intel/vulkan/anv_pipeline_cache.c b/src/intel/vulkan/anv_pipeline_cache.c index ad9c810f1f4..82551e9f81f 100644 --- a/src/intel/vulkan/anv_pipeline_cache.c +++ b/src/intel/vulkan/anv_pipeline_cache.c @@ -449,7 +449,7 @@ VkResult anv_GetPipelineCacheData( blob_write_bytes(&blob, &header, sizeof(header)); uint32_t count = 0; - ssize_t count_offset = blob_reserve_uint32(&blob); + intptr_t count_offset = blob_reserve_uint32(&blob); if (count_offset < 0) { *pDataSize = 0; blob_finish(&blob); -- cgit v1.2.3