Skip to content
This repository has been archived by the owner on Oct 7, 2021. It is now read-only.

Commit

Permalink
Merge pull request #227 from ros2/misra_fixup
Browse files Browse the repository at this point in the history
Change #if to #ifdef
  • Loading branch information
mjcarroll authored May 1, 2018
2 parents 540f5f4 + 22d3330 commit 1fba36b
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,15 @@

#include "rosidl_typesupport_opensplice_c/visibility_control.h"

#if __cplusplus
#ifdef __cplusplus
extern "C"
{
#endif

ROSIDL_TYPESUPPORT_OPENSPLICE_C_IMPORT
extern const char * rosidl_typesupport_opensplice_c__identifier;

#if __cplusplus
#ifdef __cplusplus
}
#endif

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
#ifndef ROSIDL_TYPESUPPORT_OPENSPLICE_C__VISIBILITY_CONTROL_H_
#define ROSIDL_TYPESUPPORT_OPENSPLICE_C__VISIBILITY_CONTROL_H_

#if __cplusplus
#ifdef __cplusplus
extern "C"
{
#endif
Expand Down Expand Up @@ -49,7 +49,7 @@ extern "C"
#endif
#endif

#if __cplusplus
#ifdef __cplusplus
}
#endif

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
#ifndef @PROJECT_NAME_UPPER@__MSG__ROSIDL_TYPESUPPORT_OPENSPLICE_C__VISIBILITY_CONTROL_H_
#define @PROJECT_NAME_UPPER@__MSG__ROSIDL_TYPESUPPORT_OPENSPLICE_C__VISIBILITY_CONTROL_H_

#if __cplusplus
#ifdef __cplusplus
extern "C"
{
#endif
Expand Down Expand Up @@ -36,7 +36,7 @@ extern "C"
#endif
#endif

#if __cplusplus
#ifdef __cplusplus
}
#endif

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
// Provides visibility macros like ROSIDL_TYPESUPPORT_OPENSPLICE_CPP_PUBLIC.
#include <rosidl_typesupport_opensplice_cpp/visibility_control.h>

#if __cplusplus
#ifdef __cplusplus
extern "C"
{
#endif
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
#ifndef ROSIDL_TYPESUPPORT_OPENSPLICE_CPP__VISIBILITY_CONTROL_H_
#define ROSIDL_TYPESUPPORT_OPENSPLICE_CPP__VISIBILITY_CONTROL_H_

#if __cplusplus
#ifdef __cplusplus
extern "C"
{
#endif
Expand Down Expand Up @@ -49,7 +49,7 @@ extern "C"
#endif
#endif

#if __cplusplus
#ifdef __cplusplus
}
#endif

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#ifndef @PROJECT_NAME_UPPER@__MSG__ROSIDL_TYPESUPPORT_OPENSPLICE_CPP__VISIBILITY_CONTROL_H_
#define @PROJECT_NAME_UPPER@__MSG__ROSIDL_TYPESUPPORT_OPENSPLICE_CPP__VISIBILITY_CONTROL_H_

#if __cplusplus
#ifdef __cplusplus
extern "C"
{
#endif
Expand All @@ -30,7 +30,7 @@ extern "C"
#define ROSIDL_TYPESUPPORT_OPENSPLICE_CPP_PUBLIC_@PROJECT_NAME@
#endif

#if __cplusplus
#ifdef __cplusplus
}
#endif

Expand Down

0 comments on commit 1fba36b

Please sign in to comment.