[Mesa-dev] [PATCH 02/20] swr/rast: Added missing define for Linux/gcc

George Kyriazis george.kyriazis at intel.com
Fri Jan 19 21:46:57 UTC 2018


 + ZeroMemory() macro definition for non win32-compilation in common/os.h
---
 src/gallium/drivers/swr/rasterizer/common/os.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/gallium/drivers/swr/rasterizer/common/os.h b/src/gallium/drivers/swr/rasterizer/common/os.h
index 358cb33..c7e87e2 100644
--- a/src/gallium/drivers/swr/rasterizer/common/os.h
+++ b/src/gallium/drivers/swr/rasterizer/common/os.h
@@ -244,6 +244,7 @@ void AlignedFree(void* p)
 #define PRAGMA_WARNING_PUSH_DISABLE(...)
 #define PRAGMA_WARNING_POP()
 
+#define ZeroMemory(dst, size) memset(dst, 0, size)
 #else
 
 #error Unsupported OS/system.
-- 
2.7.4



More information about the mesa-dev mailing list