mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-05 09:00:08 +01:00
vulkan/util: Fix implicit declaration of ffs for Android build
Similar to641320ce02and68bb26af63to avoid Android build errors Fixes the following building error: In file included from external/mesa/src/vulkan/util/vk_util.c:28: external/mesa/src/vulkan/util/vk_util.h:248:30: error: implicit declaration of function 'ffs' is invalid in C99 [-Werror,-Wimplicit-function-declaration] return (gl_shader_stage) (ffs((uint32_t) vk_stage) - 1); ^ 1 error generated. Fixes:06ebbde630("vulkan: Deduplicate mesa stage conversion") Acked-by: Jason Ekstrand <jason@jlekstrand.net> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10023>
This commit is contained in:
parent
11010b932b
commit
1b3a0f8829
1 changed files with 1 additions and 0 deletions
|
|
@ -23,6 +23,7 @@
|
|||
#ifndef VK_UTIL_H
|
||||
#define VK_UTIL_H
|
||||
|
||||
#include "util/bitscan.h"
|
||||
#include "util/macros.h"
|
||||
#include "compiler/shader_enums.h"
|
||||
#include <string.h>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue