From 8f7d5e99eb2f231450cd4585051c5257952d6090 Mon Sep 17 00:00:00 2001 From: Christophe Bedard Date: Tue, 18 Jun 2019 11:13:49 +0200 Subject: [PATCH] Add workaround for cpplint --- tracetools/include/tracetools/tp_call.h | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/tracetools/include/tracetools/tp_call.h b/tracetools/include/tracetools/tp_call.h index fb6c457..a1aaa13 100644 --- a/tracetools/include/tracetools/tp_call.h +++ b/tracetools/include/tracetools/tp_call.h @@ -12,14 +12,19 @@ // See the License for the specific language governing permissions and // limitations under the License. +// Provide fake header guard for cpplint +#undef TRACETOOLS__TP_CALL_H_ +#ifndef TRACETOOLS__TP_CALL_H_ +#define TRACETOOLS__TP_CALL_H_ + #undef TRACEPOINT_PROVIDER #define TRACEPOINT_PROVIDER ros2 #undef TRACEPOINT_INCLUDE #define TRACEPOINT_INCLUDE "tracetools/tp_call.h" -#if !defined(TRACETOOLS__TP_CALL_H_) || defined(TRACEPOINT_HEADER_MULTI_READ) -#define TRACETOOLS__TP_CALL_H_ +#if !defined(_TRACETOOLS__TP_CALL_H_) || defined(TRACEPOINT_HEADER_MULTI_READ) +#define _TRACETOOLS__TP_CALL_H_ #include @@ -216,6 +221,8 @@ TRACEPOINT_EVENT( ) ) -#endif // TRACETOOLS__TP_CALL_H_ +#endif // _TRACETOOLS__TP_CALL_H_ #include + +#endif // TRACETOOLS__TP_CALL_H_