Actually, it looks like this is already done in Speex as of revision 7150 in SVN (7/15/2004). As long as HAVE_CONFIG_H is defined in the project settings (which it is in all of the project files in SVN), win32\config.h should be included, and this has #define inline __inline in it. Oleg - you should make sure HAVE_CONFIG_H is defined in your project settings. And, you didn't say which source file you were trying to compile when you got the error, but it should have the following at the top of it: #ifdef HAVE_CONFIG_H #include "config.h" #endif Tom Jean-Marc Valin <jean-marc.valin@usherbrooke.ca> wrote:> > #define inline __inline > > Not sure where that goes into MS project files... > > Jean-Marc > > Oleg Kokorin a ?crit : > > Hello All > > > > it seems like MS compiler don't like "inline" keyword, > > instead it's expecting to see "__inline". > > > > speex\libspeex\misc.h(79) : error C2054: expected '(' > > to follow 'inline' > > > > Oleg
checked out revision is 12919 HAVE_CONFIG_H is defined in libspeex.vcproj however problem appeared to be present. (maybe missing include of win32/config.h inside misc.h file?) Oleg --- Tom Grandgent <tgrand@canvaslink.com> wrote:> Actually, it looks like this is already done in > Speex as of revision > 7150 in SVN (7/15/2004). As long as HAVE_CONFIG_H > is defined in the > project settings (which it is in all of the project > files in SVN), > win32\config.h should be included, and this has > #define inline __inline in it. > > Oleg - you should make sure HAVE_CONFIG_H is defined > in your project > settings. And, you didn't say which source file you > were trying to > compile when you got the error, but it should have > the following at > the top of it: > > #ifdef HAVE_CONFIG_H > #include "config.h" > #endif > > Tom > > Jean-Marc Valin <jean-marc.valin@usherbrooke.ca> > wrote: > > > > #define inline __inline > > > > Not sure where that goes into MS project files... > > > > Jean-Marc > > > > Oleg Kokorin a ?crit : > > > Hello All > > > > > > it seems like MS compiler don't like "inline" > keyword, > > > instead it's expecting to see "__inline". > > > > > > speex\libspeex\misc.h(79) : error C2054: > expected '(' > > > to follow 'inline' > > > > > > Oleg > >
Reasonably Related Threads
- compiling echo cancellation
- Error in compiling Speexdec code (Speex-1.1.5 code) on Windows using VC++6.0
- #410 Incorrect HAVE_CONFIG_H checks
- [PATCH] Add missing HAVE_CONFIG_H guards
- [common/libguestfs PATCH] utils: conditionally include config.h on HAVE_CONFIG_H