Permalink
Browse files

Fix compile problems when cross compiling

  • Loading branch information...
1 parent eec2b4e commit 01af7cde4ed8d13220fc7d6207f26bc9197430c9 @trondn committed Aug 1, 2010
Showing with 6 additions and 0 deletions.
  1. +6 −0 win32/wrappers.h
View
6 win32/wrappers.h
@@ -12,13 +12,19 @@
#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
* structs.
*/
#undef interface
+#undef malloc
+#undef realloc
+
+
/*
* WinSock use a separate range for error codes. Let's just map to the
* WinSock ones.

0 comments on commit 01af7cd

Please sign in to comment.