Use '#ifdef' instead of '#if defined()`
Signed-off-by: Christophe Bedard <bedard.christophe@gmail.com>
This commit is contained in:
parent
b2d13721fa
commit
40092071e9
2 changed files with 5 additions and 5 deletions
|
@ -16,7 +16,7 @@
|
|||
|
||||
#ifndef TRACETOOLS_DISABLED
|
||||
|
||||
#if defined(TRACETOOLS_LTTNG_ENABLED)
|
||||
#ifdef TRACETOOLS_LTTNG_ENABLED
|
||||
# include "tracetools/tp_call.h"
|
||||
# define CONDITIONAL_TP(...) \
|
||||
tracepoint(TRACEPOINT_PROVIDER, __VA_ARGS__)
|
||||
|
@ -26,7 +26,7 @@
|
|||
|
||||
bool ros_trace_compile_status()
|
||||
{
|
||||
#if defined(TRACETOOLS_LTTNG_ENABLED)
|
||||
#ifdef TRACETOOLS_LTTNG_ENABLED
|
||||
return true;
|
||||
#else
|
||||
return false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue