fix inline, __inline for _WIN32
This commit is contained in:
1 parent
3d130d9d66
commit
98c93a7330
1 file changed
+7
-1
@@ -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