Skip to content

Commit

Permalink
OpenCL shared misc: Avoid redefining INLINE
Browse files Browse the repository at this point in the history
Re-define problem seen on macos.
  • Loading branch information
magnumripper committed Feb 8, 2025
1 parent 3022b1f commit 5ecbb1b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions run/opencl/opencl_misc.h
Original file line number Diff line number Diff line change
Expand Up @@ -58,13 +58,15 @@ typedef uint32_t host_size_t;

#define NOINLINE __attribute__((noinline))

#ifndef INLINE
#if __MESA__
#define INLINE
#elif __POCL__
#define INLINE inline
#else
#define INLINE static inline
#endif
#endif

#endif /* _OPENCL_COMPILER */

Expand Down

0 comments on commit 5ecbb1b

Please sign in to comment.