eina: try to provide __WORDSIZE to system that don't have it aka OpenBSD.

This commit is contained in:
Cedric BAIL 2017-01-05 16:33:29 -08:00
parent 44517fca5c
commit 273238d725
1 changed files with 8 additions and 0 deletions

View File

@ -122,6 +122,14 @@
#endif
@EINA_CONFIGURE_HAVE_OSX_SEMAPHORE@
#include <limits.h>
#if defined(__OPENBSD__) && (INTPTR_MAX == INT32_MAX)
# define __WORDSIZE 32
#else
# define __WORDSIZE 64
#endif
/* Do not turn the following #define as meaning EFL64. We are only
interested to know if sizeof (void*) == 64bits or not. Those means
something else.