Skip to content

Commit 7387338

Browse files
committed
[libclc] Add some include guards to CLC declarations. NFC
1 parent 207e5cc commit 7387338

File tree

4 files changed

+20
-0
lines changed

4 files changed

+20
-0
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,7 @@
1+
#ifndef __CLC_GEOMETRIC_CLC_DOT_H__
2+
#define __CLC_GEOMETRIC_CLC_DOT_H__
3+
14
#define __CLC_BODY <clc/geometric/clc_dot.inc>
25
#include <clc/geometric/floatn.inc>
6+
7+
#endif // __CLC_GEOMETRIC_CLC_DOT_H__

libclc/clc/include/clc/shared/clc_clamp.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
#ifndef __CLC_SHARED_CLC_CLAMP_H__
2+
#define __CLC_SHARED_CLC_CLAMP_H__
3+
14
#if defined(CLC_CLSPV) || defined(CLC_SPIRV)
25
// clspv and spir-v targets provide their own OpenCL-compatible clamp
36
#define __clc_clamp clamp
@@ -13,3 +16,5 @@
1316
#include <clc/math/gentype.inc>
1417

1518
#endif
19+
20+
#endif // __CLC_SHARED_CLC_CLAMP_H__

libclc/clc/include/clc/shared/clc_max.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
#ifndef __CLC_SHARED_CLC_MAX_H__
2+
#define __CLC_SHARED_CLC_MAX_H__
3+
14
#if defined(CLC_CLSPV) || defined(CLC_SPIRV)
25
// clspv and spir-v targets provide their own OpenCL-compatible max
36
#define __clc_max max
@@ -10,3 +13,5 @@
1013
#include <clc/math/gentype.inc>
1114

1215
#endif
16+
17+
#endif // __CLC_SHARED_CLC_MAX_H__

libclc/clc/include/clc/shared/clc_min.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
#ifndef __CLC_SHARED_CLC_MIN_H__
2+
#define __CLC_SHARED_CLC_MIN_H__
3+
14
#if defined(CLC_CLSPV) || defined(CLC_SPIRV)
25
// clspv and spir-v targets provide their own OpenCL-compatible min
36
#define __clc_min min
@@ -10,3 +13,5 @@
1013
#include <clc/math/gentype.inc>
1114

1215
#endif
16+
17+
#endif // __CLC_SHARED_CLC_MIN_H__

0 commit comments

Comments
 (0)