misc: replace `#ifdef\s\s__cplusplus` with `#ifdef\s__cplusplus`

Signed-off-by: Yonggang Luo <luoyonggang@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15762>
This commit is contained in:
Yonggang Luo 2022-03-31 15:34:08 +08:00 committed by Marge Bot
parent 9aa094d1b1
commit ea7cda93f3
7 changed files with 10 additions and 10 deletions

View File

@ -45,7 +45,7 @@
# error Unsupported OS
#endif
#ifdef __cplusplus
#ifdef __cplusplus
extern "C" {
#endif

View File

@ -29,7 +29,7 @@
#include "u_tracepoints.h"
#ifdef __cplusplus
#ifdef __cplusplus
extern "C" {
#endif
@ -91,6 +91,6 @@ trace_framebuffer_state(struct u_trace *ut, void *cs, const struct pipe_framebuf
}
}
#ifdef __cplusplus
#ifdef __cplusplus
}
#endif

View File

@ -26,7 +26,7 @@
#include "util/perf/u_trace.h"
#ifdef __cplusplus
#ifdef __cplusplus
extern "C" {
#endif
@ -50,7 +50,7 @@ u_trace_pipe_context_init(struct u_trace_context *utctx,
void
trace_framebuffer_state(struct u_trace *ut, void *cs, const struct pipe_framebuffer_state *pfb);
#ifdef __cplusplus
#ifdef __cplusplus
}
#endif

View File

@ -11,7 +11,7 @@
#include <stdbool.h>
#include <stdio.h>
#ifdef __cplusplus
#ifdef __cplusplus
extern "C" {
#endif

View File

@ -46,7 +46,7 @@
#endif
#ifdef __cplusplus
#ifdef __cplusplus
extern "C" {
#endif

View File

@ -30,7 +30,7 @@
#include "util/u_queue.h"
#ifdef __cplusplus
#ifdef __cplusplus
extern "C" {
#endif
@ -294,7 +294,7 @@ u_trace_context_instrumenting(struct u_trace_context *utctx)
return !!utctx->out || ut_trace_instrument || (ut_perfetto_enabled > 0);
}
#ifdef __cplusplus
#ifdef __cplusplus
}
#endif

View File

@ -189,7 +189,7 @@ struct trace_${trace_name} {
${arg.type} ${arg.name};
% endfor
% if len(trace.args) == 0:
#ifdef __cplusplus
#ifdef __cplusplus
/* avoid warnings about empty struct size mis-match in C vs C++..
* the size mis-match is harmless because (a) nothing will deref
* the empty struct, and (b) the code that cares about allocating