Eina: add EINA_UNUSED on Windows. Should be in eina_types.h instead

SVN revision: 76341
This commit is contained in:
Vincent Torri 2012-09-08 09:15:17 +00:00
parent 0fe8e0f106
commit b8b93194d0
1 changed files with 9 additions and 0 deletions

View File

@ -19,6 +19,15 @@
#ifndef EINA_INLINE_LOCK_WIN32_X_
#define EINA_INLINE_LOCK_WIN32_X_
#ifdef EINA_UNUSED
# undef EINA_UNUSED
#endif
#ifdef __GNUC__
# define EINA_UNUSED __attribute__((unused))
#else
# define EINA_UNUSED
#endif
#include <windows.h>
typedef CRITICAL_SECTION Eina_Lock;