nir: Add missing extern "C" to nir_defines.h

Reviewed-by: Faith Ekstrand <faith.ekstrand@collabora.com>
Reviewed-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Acked-By: Mike Blumenkrantz <michael.blumenkrantz@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/33439>
This commit is contained in:
Timur Kristóf 2025-02-06 21:47:58 +01:00
parent f4c80b419f
commit f1292bd03e

View file

@ -11,6 +11,10 @@
#ifndef NIR_DEFINES_H
#define NIR_DEFINES_H
#ifdef __cplusplus
extern "C" {
#endif
/** NIR sized and unsized types
*
* The values in this enum are carefully chosen so that the sized type is
@ -58,4 +62,8 @@ nir_alu_type_get_base_type(nir_alu_type type)
return (nir_alu_type)(type & NIR_ALU_TYPE_BASE_TYPE_MASK);
}
#ifdef __cplusplus
}
#endif
#endif