diff options
author | Dave Bodenstab <the.tick@gmx.com> | 2012-02-22 12:04:54 +0000 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2018-09-22 12:47:34 -0700 |
commit | bc1b4962f048cfa33b76be46493e10cfb256fe98 (patch) | |
tree | deeb5261798aec4ef7c946916fbfa8b04b82bc5b /src/XpmI.h | |
parent | e42ca7b484418b169fd19a4c68e23ad2a6ec7a11 (diff) |
Windows build fixes
https://bugs.freedesktop.org/show_bug.cgi?id=46475
https://bugs.freedesktop.org/attachment.cgi?id=57479
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'src/XpmI.h')
-rw-r--r-- | src/XpmI.h | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -216,8 +216,13 @@ FUNC(xpmHashTableFree, void, (xpmHashTable *table)); FUNC(xpmHashSlot, xpmHashAtom *, (xpmHashTable *table, char *s)); FUNC(xpmHashIntern, int, (xpmHashTable *table, char *tag, void *data)); +#if defined(_MSC_VER) && defined(_M_X64) +#define HashAtomData(i) ((void *)(long long)i) +#define HashColorIndex(slot) ((unsigned long long)((*slot)->data)) +#else #define HashAtomData(i) ((void *)(long)i) #define HashColorIndex(slot) ((unsigned long)((*slot)->data)) +#endif #define USE_HASHTABLE (cpp > 2 && ncolors > 4) /* I/O utility */ |