util/drirc_gen: Make the header usable from C++.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/41877>
This commit is contained in:
Emma Anholt 2026-05-28 14:25:10 -07:00 committed by Marge Bot
parent 2595e4a972
commit ae2cc693f8

View file

@ -146,6 +146,10 @@ TEMPLATE_H = """\
#ifndef ${driver_prefix.upper()}_DRIRC_H
#define ${driver_prefix.upper()}_DRIRC_H
#ifdef __cplusplus
extern "C" {
#endif
#include "util/driconf.h"
struct ${driver_prefix}_drirc {
@ -166,6 +170,10 @@ struct ${driver_prefix}_drirc {
void ${driver_prefix}_parse_dri_options(struct ${driver_prefix}_drirc *drirc,
const driConfigFileParseParams *params);
#ifdef __cplusplus
}
#endif
#endif /* ${driver_prefix.upper()}_DRIRC_H */
"""