LONG_BIT is not defined on Windows.
git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/eet@49934
7cbeb6ba-43b4-40fd-8cce-
4c39aea84d33
* Release eet 1.3.2
+2010-06-29 Vincent Torri
+
+ * On Windows 64, long is of size 32 bits and not 64 bits. Also
+ LONG_BIT is not defined on Windows.
static int
_eet_free_hash(void *data)
{
+#ifdef _WIN64
+ __int64 ptr = (UINT_PTR)data;
+#else
unsigned long ptr = (unsigned long)(data);
+#endif
int hash;
hash = ptr;
hash ^= ptr >> 16;
hash ^= ptr >> 24;
-#if LONG_BIT != 32
+#if defined (_WIN64) || ( (! defined (_WIN32)) && (LONG_BIT != 32) )
hash ^= ptr >> 32;
hash ^= ptr >> 40;
hash ^= ptr >> 48;