aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libclc/clc/include/clc/geometric/clc_dot.h5
-rw-r--r--libclc/clc/include/clc/shared/clc_clamp.h5
-rw-r--r--libclc/clc/include/clc/shared/clc_max.h5
-rw-r--r--libclc/clc/include/clc/shared/clc_min.h5
4 files changed, 20 insertions, 0 deletions
diff --git a/libclc/clc/include/clc/geometric/clc_dot.h b/libclc/clc/include/clc/geometric/clc_dot.h
index e0e47ab..a7fa4e1 100644
--- a/libclc/clc/include/clc/geometric/clc_dot.h
+++ b/libclc/clc/include/clc/geometric/clc_dot.h
@@ -1,2 +1,7 @@
+#ifndef __CLC_GEOMETRIC_CLC_DOT_H__
+#define __CLC_GEOMETRIC_CLC_DOT_H__
+
#define __CLC_BODY <clc/geometric/clc_dot.inc>
#include <clc/geometric/floatn.inc>
+
+#endif // __CLC_GEOMETRIC_CLC_DOT_H__
diff --git a/libclc/clc/include/clc/shared/clc_clamp.h b/libclc/clc/include/clc/shared/clc_clamp.h
index 5c044c9..a84184c 100644
--- a/libclc/clc/include/clc/shared/clc_clamp.h
+++ b/libclc/clc/include/clc/shared/clc_clamp.h
@@ -1,3 +1,6 @@
+#ifndef __CLC_SHARED_CLC_CLAMP_H__
+#define __CLC_SHARED_CLC_CLAMP_H__
+
#if defined(CLC_CLSPV) || defined(CLC_SPIRV)
// clspv and spir-v targets provide their own OpenCL-compatible clamp
#define __clc_clamp clamp
@@ -13,3 +16,5 @@
#include <clc/math/gentype.inc>
#endif
+
+#endif // __CLC_SHARED_CLC_CLAMP_H__
diff --git a/libclc/clc/include/clc/shared/clc_max.h b/libclc/clc/include/clc/shared/clc_max.h
index 2825640..388f001 100644
--- a/libclc/clc/include/clc/shared/clc_max.h
+++ b/libclc/clc/include/clc/shared/clc_max.h
@@ -1,3 +1,6 @@
+#ifndef __CLC_SHARED_CLC_MAX_H__
+#define __CLC_SHARED_CLC_MAX_H__
+
#if defined(CLC_CLSPV) || defined(CLC_SPIRV)
// clspv and spir-v targets provide their own OpenCL-compatible max
#define __clc_max max
@@ -10,3 +13,5 @@
#include <clc/math/gentype.inc>
#endif
+
+#endif // __CLC_SHARED_CLC_MAX_H__
diff --git a/libclc/clc/include/clc/shared/clc_min.h b/libclc/clc/include/clc/shared/clc_min.h
index 0b7ee14..c8d920e 100644
--- a/libclc/clc/include/clc/shared/clc_min.h
+++ b/libclc/clc/include/clc/shared/clc_min.h
@@ -1,3 +1,6 @@
+#ifndef __CLC_SHARED_CLC_MIN_H__
+#define __CLC_SHARED_CLC_MIN_H__
+
#if defined(CLC_CLSPV) || defined(CLC_SPIRV)
// clspv and spir-v targets provide their own OpenCL-compatible min
#define __clc_min min
@@ -10,3 +13,5 @@
#include <clc/math/gentype.inc>
#endif
+
+#endif // __CLC_SHARED_CLC_MIN_H__