Joined: 20 Jul 2014
|Posted: Sun Jul 20, 2014 3:16 pm Post subject: Consider addressing compatibility regarding 'inline' keyword
I maintain the eggdrop package in MacPorts. I just updated the port to fix some breakage caused by the 'inline' keyword, which is handled differently by clang as compared to GCC.
For MacPorts, I'm simply removing the three instances of this keyword, secure in the knowledge that clang will inline the code if it would help to do so.
You may wish to special-case the 'inline' keyword to be native compatible with clang (e.g. 'static inline'), or simply remove 'inline' entirely.
Here's a reference to the MacPorts thread on this topic: