mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-06-10 01:18:18 +02:00
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:
parent
2595e4a972
commit
ae2cc693f8
1 changed files with 8 additions and 0 deletions
|
|
@ -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 */
|
||||
"""
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue