Skip to content

Commit ec7f068

Browse files
committed
Remove unnecessary extern "C"
Signed-off-by: Dan Rose <[email protected]>
1 parent 7a4bcba commit ec7f068

File tree

2 files changed

+0
-12
lines changed

2 files changed

+0
-12
lines changed

rcl_logging_noop/src/rcl_logging_noop/rcl_logging_noop.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@
1414

1515
#include <rcutils/allocator.h>
1616

17-
extern "C" {
18-
1917
typedef int rcl_logging_ret_t;
2018
#define RCL_LOGGING_RET_OK (0)
2119

@@ -46,5 +44,3 @@ rcl_logging_ret_t rcl_logging_external_set_logger_level(const char * name, int l
4644
(void) level;
4745
return RCL_LOGGING_RET_OK;
4846
}
49-
50-
} /* extern "C" */

rcl_logging_spdlog/src/rcl_logging_spdlog.cpp

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,6 @@
3434
#define RCL_LOGGING_RET_OK (0)
3535
#define RCL_LOGGING_RET_ERROR (2)
3636

37-
#ifdef __cplusplus
38-
extern "C" {
39-
#endif
40-
4137
static std::mutex g_logger_mutex;
4238
static std::unique_ptr<spdlog::logger> g_root_logger = nullptr;
4339

@@ -174,7 +170,3 @@ rcl_logging_ret_t rcl_logging_external_set_logger_level(const char * name, int l
174170

175171
return RCL_LOGGING_RET_OK;
176172
}
177-
178-
#ifdef __cplusplus
179-
} /* extern "C" */
180-
#endif

0 commit comments

Comments
 (0)