gallium/util: allow including a few files in C++

Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7807>
This commit is contained in:
Marek Olšák
2020-08-25 22:49:31 -04:00
parent ea23ca8869
commit f95fb3ab9c
2 changed files with 16 additions and 0 deletions
@@ -23,6 +23,10 @@
#ifndef UTIL_INDEX_MODIFY_H
#define UTIL_INDEX_MODIFY_H
#ifdef __cplusplus
extern "C" {
#endif
struct pipe_context;
struct pipe_resource;
@@ -48,4 +52,8 @@ void util_rebuild_uint_elts_to_userptr(struct pipe_context *context,
unsigned start, unsigned count,
void *out);
#ifdef __cplusplus
}
#endif
#endif
+8
View File
@@ -49,6 +49,10 @@
#include "util/u_debug.h"
#ifdef __cplusplus
extern "C" {
#endif
struct u_log_page;
struct u_log_auto_logger;
@@ -97,4 +101,8 @@ u_log_page_destroy(struct u_log_page *page);
void
u_log_page_print(struct u_log_page *page, FILE *stream);
#ifdef __cplusplus
}
#endif
#endif /* U_LOG_H */