Fix T56197: Cycles OpenCL build error after recent changes.
This commit is contained in:
@@ -88,9 +88,13 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(__GNUC__) || defined(__clang__)
|
#if defined(__GNUC__) || defined(__clang__)
|
||||||
|
# if defined(__cplusplus)
|
||||||
/* Some magic to be sure we don't have reference in the type. */
|
/* Some magic to be sure we don't have reference in the type. */
|
||||||
template<typename T> static inline T decltype_helper(T x) { return x; }
|
template<typename T> static inline T decltype_helper(T x) { return x; }
|
||||||
# define TYPEOF(x) decltype(decltype_helper(x))
|
# define TYPEOF(x) decltype(decltype_helper(x))
|
||||||
|
# else
|
||||||
|
# define TYPEOF(x) typeof(x)
|
||||||
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Causes warning:
|
/* Causes warning:
|
||||||
|
Reference in New Issue
Block a user