projects
/
platform
/
upstream
/
efl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
44517fc
)
eina: try to provide __WORDSIZE to system that don't have it aka OpenBSD.
author
Cedric BAIL
<cedric@osg.samsung.com>
Fri, 6 Jan 2017 00:33:29 +0000
(16:33 -0800)
committer
Cedric BAIL
<cedric@osg.samsung.com>
Fri, 6 Jan 2017 00:33:59 +0000
(16:33 -0800)
src/lib/eina/eina_config.h.in
patch
|
blob
|
history
diff --git
a/src/lib/eina/eina_config.h.in
b/src/lib/eina/eina_config.h.in
index
ab970ef
..
58cbcab
100644
(file)
--- 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.