summaryrefslogtreecommitdiff
path: root/linkhash.c
diff options
context:
space:
mode:
authorChristopher Watford <christopher.watford@gmail.com>2014-12-05 10:22:36 -0500
committerChristopher Watford <christopher.watford@gmail.com>2014-12-05 10:22:36 -0500
commit0609a5729c4c38c98ff198cee4a835fb9953753a (patch)
tree9f29c33ada9a65248e2912e3d3f140c4d17fa56a /linkhash.c
parentec4879ac5b502ae81f6b73450b960ede11ad2560 (diff)
Fixes #160 'missing header file on windows'
Diffstat (limited to 'linkhash.c')
-rw-r--r--linkhash.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/linkhash.c b/linkhash.c
index 712c387..630ed0c 100644
--- a/linkhash.c
+++ b/linkhash.c
@@ -21,6 +21,11 @@
# include <endian.h> /* attempt to define endianness */
#endif
+#ifdef _MSC_VER
+# define WIN32_LEAN_AND_MEAN
+# include <windows.h> /* Get InterlockedCompareExchange */
+#endif
+
#include "random_seed.h"
#include "linkhash.h"