diff --git a/examples/SharedMemory/SharedMemoryBlock.h b/examples/SharedMemory/SharedMemoryBlock.h index b3d2709d0..ba7faccb5 100644 --- a/examples/SharedMemory/SharedMemoryBlock.h +++ b/examples/SharedMemory/SharedMemoryBlock.h @@ -30,7 +30,13 @@ struct SharedMemoryBlock }; -inline void InitSharedMemoryBlock(struct SharedMemoryBlock* sharedMemoryBlock) +//http://stackoverflow.com/questions/24736304/unable-to-use-inline-in-declaration-get-error-c2054 +#ifdef _WIN32 +__inline +#else +inline +#endif +void InitSharedMemoryBlock(struct SharedMemoryBlock* sharedMemoryBlock) { sharedMemoryBlock->m_numClientCommands = 0; sharedMemoryBlock->m_numServerCommands = 0;