Skip to content

Commit 5eeadf0

Browse files
committed
ompi: use #ifndef for header file guards
Open MPI consistently used #ifndef header guards but some files use the more dominant style in Open MPI. This also helps with clang-format when indenting macros after #if. Signed-off-by: Nathan Hjelm <[email protected]>
1 parent 94ee228 commit 5eeadf0

File tree

9 files changed

+12
-12
lines changed

9 files changed

+12
-12
lines changed

ompi/communicator/comm_request.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
* $HEADER$
1010
*/
1111

12-
#if !defined(OMPI_COMM_REQ_H)
12+
#ifndef OMPI_COMM_REQ_H
1313
#define OMPI_COMM_REQ_H
1414

1515
#include "opal/class/opal_list.h"

ompi/mca/osc/rdma/osc_rdma_accumulate.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
* $HEADER$
1212
*/
1313

14-
#if !defined(OSC_RDMA_ACCUMULATE_H)
14+
#ifndef OSC_RDMA_ACCUMULATE_H
1515
#define OSC_RDMA_ACCUMULATE_H
1616

1717
#include "osc_rdma.h"

ompi/mca/osc/rdma/osc_rdma_active_target.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
* $HEADER$
2121
*/
2222

23-
#if !defined(OSC_RDMA_ACTIVE_TARGET_H)
23+
#ifndef OSC_RDMA_ACTIVE_TARGET_H
2424
#define OSC_RDMA_ACTIVE_TARGET_H
2525

2626
#include "osc_rdma.h"

ompi/mca/osc/rdma/osc_rdma_comm.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
* $HEADER$
1212
*/
1313

14-
#if !defined(OMPI_OSC_RDMA_COMM_H)
14+
#ifndef OMPI_OSC_RDMA_COMM_H
1515
#define OMPI_OSC_RDMA_COMM_H
1616

1717
#include "osc_rdma_dynamic.h"

ompi/mca/osc/rdma/osc_rdma_lock.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
* $HEADER$
1313
*/
1414

15-
#if !defined(OMPI_OSC_RDMA_LOCK_H)
15+
#ifndef OMPI_OSC_RDMA_LOCK_H
1616
#define OMPI_OSC_RDMA_LOCK_H
1717

1818
#include "osc_rdma_types.h"

ompi/mca/osc/rdma/osc_rdma_passive_target.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
* $HEADER$
1111
*/
1212

13-
#if !defined(OSC_RDMA_PASSIVE_TARGET_H)
13+
#ifndef OSC_RDMA_PASSIVE_TARGET_H
1414
#define OSC_RDMA_PASSIVE_TARGET_H
1515

1616
#include "osc_rdma.h"
@@ -129,4 +129,4 @@ int ompi_osc_rdma_flush_local (int target, struct ompi_win_t *win);
129129
*/
130130
int ompi_osc_rdma_flush_local_all (struct ompi_win_t *win);
131131

132-
#endif
132+
#endif /* OSC_RDMA_PASSIVE_TARGET_H */

ompi/mca/osc/rdma/osc_rdma_sync.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
* $HEADER$
1111
*/
1212

13-
#if !defined(OSC_RDMA_SYNC_H)
13+
#ifndef OSC_RDMA_SYNC_H
1414
#define OSC_RDMA_SYNC_H
1515

1616
#include "ompi/group/group.h"

ompi/mpi/tool/mpit-internal.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
* $HEADER$
1313
*/
1414

15-
#if !defined(MPIT_INTERNAL_H)
15+
#ifndef MPIT_INTERNAL_H
1616
#define MPIT_INTERNAL_H
1717

1818
#include "opal/util/string_copy.h"
@@ -73,4 +73,4 @@ static inline void mpit_copy_string (char *dest, int *len, const char *source)
7373
}
7474
}
7575

76-
#endif /* !defined(MPIT_INTERNAL_H) */
76+
#endif /* MPIT_INTERNAL_H */

ompi/runtime/ompi_info_support.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
* $HEADER$
2121
*/
2222

23-
#if !defined(OMPI_INFO_SUPPORT_H)
23+
#ifndef OMPI_INFO_SUPPORT_H
2424
#define OMPI_INFO_SUPPORT_H
2525

2626
#include "opal/class/opal_pointer_array.h"
@@ -33,4 +33,4 @@ OMPI_DECLSPEC void ompi_info_close_components(void);
3333

3434
OMPI_DECLSPEC void ompi_info_show_ompi_version(const char *scope);
3535

36-
#endif /* !defined(OMPI_INFO_SUPPORT_H) */
36+
#endif /* OMPI_INFO_SUPPORT_H */

0 commit comments

Comments
 (0)