[Libclc-dev] [PATCH 3/4] Remove the static keyword from the _CLC_INLINE macro

Tom Stellard tom at stellard.net
Thu Feb 7 09:54:33 PST 2013


From: Tom Stellard <thomas.stellard at amd.com>

static functions are not allowed in OpenCL C
---
 generic/include/clc/clcfunc.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/generic/include/clc/clcfunc.h b/generic/include/clc/clcfunc.h
index 46067fc..5f166c5 100644
--- a/generic/include/clc/clcfunc.h
+++ b/generic/include/clc/clcfunc.h
@@ -1,4 +1,4 @@
 #define _CLC_OVERLOAD __attribute__((overloadable))
 #define _CLC_DECL
 #define _CLC_DEF __attribute__((always_inline))
-#define _CLC_INLINE __attribute__((always_inline)) static inline
+#define _CLC_INLINE __attribute__((always_inline)) inline
-- 
1.7.8.6





More information about the Libclc-dev mailing list