mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-07 08:40:11 +01:00
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:
parent
f4c80b419f
commit
f1292bd03e
1 changed files with 8 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue