Skip to content

Commit

Permalink
Merge pull request #234 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 7284573 + 8eebf5a commit 6bd7598
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions composition/include/composition/visibility_control.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
#ifndef COMPOSITION__VISIBILITY_CONTROL_H_
#define COMPOSITION__VISIBILITY_CONTROL_H_

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

#if __cplusplus
#ifdef __cplusplus
}
#endif

Expand Down
4 changes: 2 additions & 2 deletions logging_demo/include/logging_demo/visibility_control.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
#ifndef LOGGING_DEMO__VISIBILITY_CONTROL_H_
#define LOGGING_DEMO__VISIBILITY_CONTROL_H_

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

#if __cplusplus
#ifdef __cplusplus
}
#endif

Expand Down

0 comments on commit 6bd7598

Please sign in to comment.