fix inline, __inline for _WIN32
This commit is contained in:
@@ -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_numClientCommands = 0;
|
||||||
sharedMemoryBlock->m_numServerCommands = 0;
|
sharedMemoryBlock->m_numServerCommands = 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user