I got here a C library written by someone else, with a very nice way to compile it on a Mac and generate a ruby wrapper.
I am on Windows, and I need to generate a wr
In the version of the C language that's supported by Visual Studio 2010, there is no word inline
. Only C++ has inline
. I don't think inline
became a part of C until the very latest version of the C standard (C11), which nobody supports yet.
Instead, you should use the word __inline
, which means the same thing. The underscores imply that this is an "extension," something that's not part of standard C.
Alternatively, you could put #define inline __inline
at the start of each file, or in a .h
header file which is #include
d at the beginning. That would automatically translate the word inline
to __inline
each time it appears.
(It's likely that the person who wrote that code was using a different compiler, one which chose to add inline
without the underscores. It's still an "extension" because it's not part of Standard C.)