summaryrefslogtreecommitdiff
path: root/src/lib/eina
diff options
context:
space:
mode:
authorCedric BAIL <cedric@osg.samsung.com>2017-01-05 16:33:29 -0800
committerCedric BAIL <cedric@osg.samsung.com>2017-01-05 16:33:59 -0800
commit273238d725f857f4bdb6ba63d90a3f800f6bf046 (patch)
tree56693e0e182abc71fd0590133fa5bee3c8a08d15 /src/lib/eina
parent44517fca5cf656fe46b3c7f6a30597c60b09c33e (diff)
eina: try to provide __WORDSIZE to system that don't have it aka OpenBSD.
Diffstat (limited to 'src/lib/eina')
-rw-r--r--src/lib/eina/eina_config.h.in8
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 @@
122#endif 122#endif
123@EINA_CONFIGURE_HAVE_OSX_SEMAPHORE@ 123@EINA_CONFIGURE_HAVE_OSX_SEMAPHORE@
124 124
125#include <limits.h>
126
127#if defined(__OPENBSD__) && (INTPTR_MAX == INT32_MAX)
128# define __WORDSIZE 32
129#else
130# define __WORDSIZE 64
131#endif
132
125/* Do not turn the following #define as meaning EFL64. We are only 133/* Do not turn the following #define as meaning EFL64. We are only
126 interested to know if sizeof (void*) == 64bits or not. Those means 134 interested to know if sizeof (void*) == 64bits or not. Those means
127 something else. 135 something else.