diff options
author | Cedric BAIL <cedric@osg.samsung.com> | 2017-01-05 16:33:29 -0800 |
---|---|---|
committer | Cedric BAIL <cedric@osg.samsung.com> | 2017-01-05 16:33:59 -0800 |
commit | 273238d725f857f4bdb6ba63d90a3f800f6bf046 (patch) | |
tree | 56693e0e182abc71fd0590133fa5bee3c8a08d15 | |
parent | 44517fca5cf656fe46b3c7f6a30597c60b09c33e (diff) | |
download | efl-273238d725f857f4bdb6ba63d90a3f800f6bf046.tar.gz |
eina: try to provide __WORDSIZE to system that don't have it aka OpenBSD.
-rw-r--r-- | src/lib/eina/eina_config.h.in | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/lib/eina/eina_config.h.in b/src/lib/eina/eina_config.h.in index ab970ef0fa..58cbcabdb4 100644 --- a/src/lib/eina/eina_config.h.in +++ b/src/lib/eina/eina_config.h.in @@ -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. |