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:
parent
9aa094d1b1
commit
ea7cda93f3
|
@ -45,7 +45,7 @@
|
||||||
# error Unsupported OS
|
# error Unsupported OS
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
@ -29,7 +29,7 @@
|
||||||
|
|
||||||
#include "u_tracepoints.h"
|
#include "u_tracepoints.h"
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -91,6 +91,6 @@ trace_framebuffer_state(struct u_trace *ut, void *cs, const struct pipe_framebuf
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -26,7 +26,7 @@
|
||||||
|
|
||||||
#include "util/perf/u_trace.h"
|
#include "util/perf/u_trace.h"
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -50,7 +50,7 @@ u_trace_pipe_context_init(struct u_trace_context *utctx,
|
||||||
void
|
void
|
||||||
trace_framebuffer_state(struct u_trace *ut, void *cs, const struct pipe_framebuffer_state *pfb);
|
trace_framebuffer_state(struct u_trace *ut, void *cs, const struct pipe_framebuffer_state *pfb);
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
@ -11,7 +11,7 @@
|
||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
@ -46,7 +46,7 @@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
@ -30,7 +30,7 @@
|
||||||
|
|
||||||
#include "util/u_queue.h"
|
#include "util/u_queue.h"
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -294,7 +294,7 @@ u_trace_context_instrumenting(struct u_trace_context *utctx)
|
||||||
return !!utctx->out || ut_trace_instrument || (ut_perfetto_enabled > 0);
|
return !!utctx->out || ut_trace_instrument || (ut_perfetto_enabled > 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
@ -189,7 +189,7 @@ struct trace_${trace_name} {
|
||||||
${arg.type} ${arg.name};
|
${arg.type} ${arg.name};
|
||||||
% endfor
|
% endfor
|
||||||
% if len(trace.args) == 0:
|
% if len(trace.args) == 0:
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
/* avoid warnings about empty struct size mis-match in C vs C++..
|
/* avoid warnings about empty struct size mis-match in C vs C++..
|
||||||
* the size mis-match is harmless because (a) nothing will deref
|
* the size mis-match is harmless because (a) nothing will deref
|
||||||
* the empty struct, and (b) the code that cares about allocating
|
* the empty struct, and (b) the code that cares about allocating
|
||||||
|
|
Loading…
Reference in New Issue