summaryrefslogtreecommitdiff
path: root/win32
diff options
context:
space:
mode:
authorTrond Norbye <trond.norbye@gmail.com>2010-08-02 00:25:02 +0200
committerTrond Norbye <trond.norbye@gmail.com>2010-08-02 00:25:02 +0200
commit286723eef769e0598ea428c522c07f868b92ca1b (patch)
tree17a668c09b467675409c5816370d60a85efbe668 /win32
parent7327acfb47c500042055b96aba1c174c012b6925 (diff)
downloadlibmemcached-286723eef769e0598ea428c522c07f868b92ca1b.tar.gz
Fix compile problems when cross compiling
Diffstat (limited to 'win32')
-rw-r--r--win32/wrappers.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/win32/wrappers.h b/win32/wrappers.h
index 20218fd5..80b44651 100644
--- a/win32/wrappers.h
+++ b/win32/wrappers.h
@@ -12,6 +12,8 @@
#ifndef WIN32_WRAPPERS_H
#define WIN32_WRAPPERS_H 1
+#include <inttypes.h>
+
/*
* One of the Windows headers define interface as a macro, but that
* is causing problems with the member named "interface" in some of the
@@ -19,6 +21,10 @@
*/
#undef interface
+#undef malloc
+#undef realloc
+
+
/*
* WinSock use a separate range for error codes. Let's just map to the
* WinSock ones.