eina: try to provide __WORDSIZE to system that don't have it aka OpenBSD.
authorCedric BAIL <cedric@osg.samsung.com>
Fri, 6 Jan 2017 00:33:29 +0000 (16:33 -0800)
committerCedric BAIL <cedric@osg.samsung.com>
Fri, 6 Jan 2017 00:33:59 +0000 (16:33 -0800)
src/lib/eina/eina_config.h.in

index ab970ef..58cbcab 100644 (file)
 #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.