- Fixed uint32_t definition on Windows systems
diff --git a/include/polarssl/camellia.h b/include/polarssl/camellia.h
index 9bf5e91..3f2e6a7 100644
--- a/include/polarssl/camellia.h
+++ b/include/polarssl/camellia.h
@@ -19,8 +19,13 @@
*/
#ifndef POLARSSL_CAMELLIA_H
#define POLARSSL_CAMELLIA_H
-
-#include <inttypes.h>
+
+#ifdef _MSC_VER
+#include <basetsd.h>
+typedef UINT32 uint32_t;
+#else
+#include <inttypes.h>
+#endif
#define CAMELLIA_ENCRYPT 1
#define CAMELLIA_DECRYPT 0
diff --git a/include/polarssl/xtea.h b/include/polarssl/xtea.h
index 45f7547..fe16ba3 100644
--- a/include/polarssl/xtea.h
+++ b/include/polarssl/xtea.h
@@ -20,7 +20,12 @@
#ifndef POLARSSL_XTEA_H
#define POLARSSL_XTEA_H
-#include <inttypes.h>
+#ifdef _MSC_VER
+#include <basetsd.h>
+typedef UINT32 uint32_t;
+#else
+#include <inttypes.h>
+#endif
#define XTEA_ENCRYPT 1
#define XTEA_DECRYPT 0