I've migrated a Visual C++ project to Visual Studio 2013. When I try to build the project, the compiler returns the following error :
Error 2 error C2169: '_InterlockedIncrement' : intrinsic function, cannot be defined
The error is in combase.h ( header from DirectShow ) and the code is :
static inline LONG WINAPI InterlockedIncrement(volatile LONG * plong)
{ return InterlockedIncrement( const_cast<LONG*>( plong ) ); }
InterlockedIncrement is defined in winnt.h as :
#define InterlockedIncrement _InterlockedIncrement
Do you know any solution for this error ?